RE: [PHP] newbie again, submit buttons don't work
| From: | Ed Lazor | Date: | Sun, 15 Aug 2004 18:07:46 +0000 |
| Subject: | RE: [PHP] newbie again, submit buttons don't work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193891@lists.php.net to get a copy of this message | ||
Assuming you're using post, add
$cmd = $_POST["cmd"];
Before you use $cmd and see if that makes a difference. If it does,
register globals is likely disabled which is good.
> -----Original Message-----
> From: yawstick [mailto:yawstick@charter.net]
> Sent: Sunday, August 15, 2004 7:58 AM
> To: php-general@lists.php.net
> Subject: [PHP] newbie again, submit buttons don't work
>
> sorry if this gets posted twice, previous attempt had an invalid email
> address
> I have several scripts that worked on early version of php4 mysql.
> They are all similar in that I use a switch($cmd) command to perform save,
> edit, delete, and update based on the value of $cmd in the submit buttons.
> I've added a line to echo the value of $cmd and it is always blank and
> none
> of my switch cases gets done. I just built box with freebsd apache php
> mysql
> and I have phpwebsite installed and it is working. Just can't figure out
> whats ailing my scripts.
> Any help will be appreciated.
>