?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?Blank String
Author:?Danny?(---.lsanca1.dsl-verizon.net)
Date:???06-04-03 22:08

I'm trying to make a page that says something if you don't put anything in for a variable. Here's my code so far:



// \/ What do I put here?
if($user=""){

?>
Please Enter a user name below to find that User's Collection.

}
?>

?Re: Blank String
Author:??(---.bluecom.no)
Date:???06-05-03 03:02

You are missing some fields in your HTML form - 1 input text field - 2. a submit button...
Here is one example on how to create a script like that:
----collection.php--------------------------------------------


if(isset($_POST['FormField'])){
// if the vaiable $_POST['FormField'] has a value
echo "You submited the following information:
".$_POST['FormField'];
}else{
//if the the vaiavle $_POST['FormField'] is blank
echo "You did NOT submit any information";
}
?>







---------------------------------------------------------------

Go to Top??|??Go to Topic??|??Threaded View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??

Provided By
Phorum