Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Form validation in Yaws

bjnortier
Posted: Fri Nov 02, 2007 9:50 am Reply with quote
Joined: 30 Aug 2007 Posts: 9
Hi

What is the recommended way to validate forms? I have a page,
form.yaws and the values are posted to post.yaws.

I'm able to create a function that validates the posted values, and
does a local redirect when invalid, but then the form is blank again,
and there's no way to provide feedback as to what went wrong.

Is it possible to do a local redirect with state, which the form page
can use to display feedback? Or some other method? I would prefer to
avoid a Javascript solution for the moment..

Thanks in advance!
Benjamin


--
Benjamin Nortier
e: bjnortier@gmail.com
c: +44 (0)778 946 1959
msn: bjnortier@mail.com
gtalk: bjnortier@gmail.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum