Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP form data in NS okay - not working in IE

Status
Not open for further replies.

jimoblak

Instructor
Oct 23, 2001
3,620
US
Has anyone encountered this before (and found a fix?)...

I have a PHP script that calls on a MySQL database from a HTML form input. It works perfectly with Netscape but cannot handle Internet Explorer.

To debug in IE, I ask the server to bounce back the variable with:
print ("$form_variable\n");

It responds with the correct value from the previously submitted page but the database query cannot handle it.

HELP!
 
do:

$form_var=trim($form_var);

Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Thanks for the thought but I have already tried stripslashes and trim to the input. I think that Microsoft purposefully did this to IE so that I would have to use ASP and MS SQL.

-oy
 
I use PHP and SQL Server and i don't have any problems.

Even using IIS + PHP + oracle i don't have problems.

Don't blaim Microsoft for wrong programming of yourself.

If you want to see what is your problem echo the query and try it directly in MySQL. Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top