Re: Variables not sent

From: Date: Wed, 07 Aug 2002 19:30:53 +0000
Subject: Re: Variables not sent
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111571@lists.php.net to get a copy of this message
May I ask why you place the form into a varible then echo it? Just write the code in normal html outside of the <?php ?> tags.. As for your varibles not being sent, I can only suggest that you have upgraded your PHP recently to one above 4.1 and that you now have to use $_POST['varible'] instead of $varible. This change has been well documented in the php changelogs, and on this forum... If that change doesn't help you place a phpinfo(); line on your submit_entry.php page, and it will show you were you values are ending up Andrew ----- Original Message ----- From: "Erich Kolb" <ekolb@randbreceivables.com> To: <php-general@lists.php.net> Sent: Wednesday, August 07, 2002 8:24 PM Subject: [PHP] Variables not sent > I have the following form: > > $form = "<form action=\"submit_entry.php\" method=\"post\"> > <table width=\"50%\" border=\"0\" align=\"center\"> > <tr> > <td>Subject: </td> > <td><input type=\"text\" name=\"subject\"></td> > </tr> > <tr> > <td>Main Entry: </td> > <td><textarea cols=\"50\" rows=\"15\" > name=\"mainentry\"></textarea></td> > </tr> > <tr> > <td colspan=\"2\"><input type=\"submit\" > name=\"submit\"></td> > </tr> > </table> > </form>"; > echo $form; > > I have done it like this a thousand times before, but for some reason > nothing is being passed to the action page (submit_entry.php). Please help, > this is driving me nuts. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#111571) next »