Current location: Hot Scripts Forums » General Web Coding » JavaScript » javascript and browser setting


javascript and browser setting

Reply
  #1 (permalink)  
Old 09-14-06, 04:54 AM
sharad sharad is offline
Newbie Coder
 
Join Date: Jun 2004
Location: noida
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
javascript and browser setting

I am working on a PHP project. Most of the PHP pages use the javascript validation.
Now the problem is that when we disapble the javascript from the browser setiings these pages do not work properly. Please suggest any way that I can javscripts independent of browser setting.
Please help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-14-06, 05:44 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
You should validate your forms with PHP on the server. This will never fail. Do you want me to move this to the PHP section?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-14-06, 10:55 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by sharad
I am working on a PHP project. Most of the PHP pages use the javascript validation.
As nico said, you should never rely on javascript except as a first line of defense. Data should *always* be validated on the server end. Always. It's trivial to turn off javascript and then stuff all sorts of illegal and/or malicious data in the form fields.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer values from JavaScript to cgi agent186 Perl 3 07-26-06 12:40 PM
FLASH, PHP and JAVASCRIPT woyrz PHP 1 06-29-06 06:31 PM
detect user browser on JavaScript support? torwill JavaScript 3 06-18-05 05:40 AM
[Help] Javascript pop up window with background color empty.container JavaScript 1 01-13-05 04:11 AM


All times are GMT -5. The time now is 07:36 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.