[PHP] problem with form values

2001-09-12 Thread Niklas Lampén

If a user enters a quota ( " ) to a form field and sends it, the page trying
to process values gets only a backslash ( \ ). No matter if I use GET or
POST. How to get the right kind of a value?


Niklas



[PHP] Problem with FORM, SELECT and SUBMIT - select value never shows up

2001-07-14 Thread Warrick Wilson \(Avignon Reg'd Kennels\)

I'm a new PHP/mySQL user (all of about 10 hours so far, working thru some
web-based tutorial stuff and using resources on the Internet). I have the
following "problem":

You can try the code out at
http://www.bond.net/~warrickw/zone6jrs/testsel.php

I want to have a form that lists values in a  menu. Eventually I
will go back to populating the form from a database. I've been working
backwards and I am down to basic HTML and a little bit of PHP to look at the
submitted values.

The problem is my page NEVER, NOT EVER recognizes the value for the
myhandlerlist  menu. If I submit by GET, it shows up in the URL
address, but isn't recognized. I added a second , and THAT got
recognized, and it recognizes my  elements, but no way can I get a
value for the myhandlerlist.

I did some searching thru the archives and generally on the Internet, and
found lots of people posting similar sorts of problems, but the proposed
solutions I saw all dealt with building the lists dynamically.  I moved away
from that to this single item list and I still can't figure out why it won't
work.

Any and all help appreciated.





Test Selection



Add/Update Handler Information
On entry:
");
if (is_array($myhandlerlist)) {
echo("myhandlerlist is an array!\n\n");
}
echo("");

echo("");
if (isset($myhanderlist)) {
echo("myhandlerlist is set to " . $myhandlerlist );
} else {
echo("myhandlerlist is NOT set");
}
echo("");

echo("");
if (isset($list2)) {
echo("list2 is set to " . $list2 );
} else {
echo("list2 is NOT set");
}
echo("");

echo("");
if (isset($hupdate)) {
echo("hupdate is set to " . $hupdate );
} else {
echo("hupdate is NOT set");
}
echo("");

echo("");
if (isset($hadd)) {
echo("hadd is set to " . $hadd );
} else {
echo("hadd is NOT set");
}
echo("");

echo("");
if (isset($useraction)) {
echo("useraction is set to " . $useraction );
} else {
echo("useraction is NOT set");
}
echo("");
?>

Select a handler from the list and press Update, or press
New to add a new Handler.



" method="get" name="useraction"
id="useraction">


Warrick Wilson










Warrick Wilson
Avignon Reg'd Kennels
Kitchener, Ontario, Canada
http://www.avignonkennels.com
mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]