Keeping my Script tag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smartic
    New Member
    • May 2007
    • 150

    #1

    Keeping my Script tag

    when i make javascript (JS) file for validation into any form i see that any one can delete the script tag from the page and save the page offline and enter the data.my question is how can i keep my script tag by php into the page ?
  • etiainen
    New Member
    • Aug 2007
    • 40

    #2
    You can't.
    You can only do the validation trough php again on the server side.
    It's a bit of extra work but it's the only way to be sure.
    JS validation is there only for user's comfort as he doesn't have to post back only to get validation error reports...

    Comment

    Working...