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:[EMAIL PROTECTED]
> Sent: Sunday, August 15, 2004 7:58 AM
> To: [EMAIL PROTECTED]
> 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.
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to