Re: redirect as POST with 'virtual' hidden fileds.
From: Joe Smith (Joe.Smith_at_inwap.com)
Date: 06/14/04
- Previous message: Aaron: "Obtaining Server Uptimes using Perl"
- In reply to: Radek G.: "redirect as POST with 'virtual' hidden fileds."
- Next in thread: Radek G.: "Re: redirect as POST with 'virtual' hidden fileds."
- Reply: Radek G.: "Re: redirect as POST with 'virtual' hidden fileds."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 14 Jun 2004 18:58:31 GMT
Radek G. wrote:
> I have a form requiring some values to be entered - some of them are
> mandatory some of the them are not. Submiting The Form targets other
> script(script no 2), where is checked if mandatory fields was filled. If all
> mandatory fields was not entered scpript should REDIRECT to previous form
No, the entered script should re-display the form.
Here is one of the cases where it makes sense to use a single CGI, not
an html document and two CGIs.
1) If called with no data, the CGI displays the form to be filled out.
2) If called with some data, the CGI displays the form to be filled out
with some fields filled in and some fields highlighted in red.
3) If called with all required data, process it.
Note that this is an html/cgi problem, and is not specific to perl.
-Joe
- Previous message: Aaron: "Obtaining Server Uptimes using Perl"
- In reply to: Radek G.: "redirect as POST with 'virtual' hidden fileds."
- Next in thread: Radek G.: "Re: redirect as POST with 'virtual' hidden fileds."
- Reply: Radek G.: "Re: redirect as POST with 'virtual' hidden fileds."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]