Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Remembering values from an HTML form

by macPerl (Beadle)
on Jan 14, 2005 at 12:43 UTC ( [id://422217]=note: print w/replies, xml ) Need Help??


in reply to Remembering values from an HTML form

Not sure of your set-up but from what I read it sounds like you should consider using a scripting language to do the form processing locally.

For example, javascript is widely used in this siutation.

By doing the processing *locally* it saves the time otherwise required to

  • send duff data to the server
  • process it remotely
  • return results
  • re-write page

Using the "onSubmit()" attribute associated with <FORM>, and with a local scripting language it's a doddle to do the data validation, alert the user to the error(s) and avoid submitting the form.

For more info on javascript search webreference.com.

  • Comment on Re: Remembering values from an HTML form

Replies are listed 'Best First'.
Re^2: Remembering values from an HTML form
by simon.proctor (Vicar) on Jan 14, 2005 at 12:52 UTC
    You still need to do the form validation at the server. If the user has disabled javascript then your solution will not work. Also, unless you have written your form processing correctly there is nothing to stop a user saving your form to their local computer and editing it - even re-writing your javascript if they need to.

    However, well written javascript will enable a user to get immediate feedback on the form data without submitting it. Just don't rely on it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://422217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found