you can't pass a literal in a url - it makes it think that it's the next
variable.
-Original Message-
From: its me [mailto:[EMAIL PROTECTED]]
Sent: 14 March 2002 11:21
To: [EMAIL PROTECTED]
Subject: [PHP-DB] need help guys
i have this
select name=category
option value='Arts'Antiques
Can you send us the full script?? Why can't you just do a submit???
The problem is the ampersand () in the middle. This is a place marker which
marks the start of the next variable in the query string.
If you absolutely *HAVE* to submit the data this way, you'll need to convert
it to the escape
hi Rehab
Because your submitted text on the url contains an '' anthing after this
character will be parsed as a new variable.
Instead of
location.href=additems.php?category=+c
try
location.href=additems.php?category=+escape(c)
this will encode the '' aswell as spaces to preserve