Skip to main content
Inspiring
January 26, 2009
Question

Handling different browsers

  • January 26, 2009
  • 2 replies
  • 392 views
I have using a form to pass data to an action page, with method set to "post" . everything is working fine in IE8 and Firefox, however when I use safari I can see the data are passed in the URL and I am getting the error that name is not defined in form.

If I use a different code in the action page like

#URL.name# instead of #form.name#

then safari is working fine.... but I am getting the error from IE8 and Firefox that name is not defined iin URL.

I think I need a code to validate the browser and execute the right version of the code, any simple ready to "paste" code around here??

Thanks.
This topic has been closed for replies.

2 replies

Inspiring
January 31, 2009
Hi,

You may want to validate your HTML code. The problem could also be that IE and Firefox are more "forgiving" with a HTML declaration in your code, but Safari has "rightly" a problem to interpret your code.

http://validator.w3.org/

cheers,
fober

Inspiring
January 26, 2009
One of your cgi variables will tell you what type of browser is being used.