Condition for Adding data

From: Date: Tue, 22 Jul 2003 12:34:20 +0000
Subject: Condition for Adding data
Groups: php.db 
Request: Send a blank email to php-db+get-29396@lists.php.net to get a copy of this message
Hi I need help!, I am quite new to php and I am trying to create a condition that will load a specific page after a form has been submitted to enter data in my database, I have tried using this code (I created it) but it wont work, all I get is a messege on the browser that says "the page address incorrect" Here is how i have scripted the code <?php $food=""; if($food=="milk") { $pgload="milk.php"; } if ($food=="eggs") { $pgload="egg.php; } if ($food=="ham") { $pgload="ham.php"; } echo "<form name=appForm method=post action=.$pgload.>" ?> any ideas on how i can go around this problem? Gatimu

« previous php.db (#29396) next »