Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Handling different browsers

Explorer ,
Jan 26, 2009 Jan 26, 2009
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.
TOPICS
Advanced techniques
364
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 26, 2009 Jan 26, 2009
One of your cgi variables will tell you what type of browser is being used.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 30, 2009 Jan 30, 2009
LATEST
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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources