RE: [PHP-WIN] form vars missing...

From: Date: Mon, 29 Sep 2003 19:14:52 +0000
Subject: RE: [PHP-WIN] form vars missing...
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-21615@lists.php.net to get a copy of this message
Jas > > Here is my problem: > > Using both the Get and Post methods my variables are missing on the > resulting page. Example of code is listed below: > > <form method="post" url="result.php" name="form"> > <input type="text" name="name"><br> > <input type="text" name="url"><br> > <input type="submit" value="send"> > > <?php > if ((!$name) || (!url)) { > do nothing; > } elseif (($name) || ($url)) { > do rest of code; > } else { > broken; } I see a couple problems here, 1. When was the "url" attribute of the form element introduced? That should be action="result.php" 2. As others indicated: you aren't giving any value to your text inputs. What are you expecting to see, even if the < url="action.php" worked?

« previous php.windows (#21615) next »