|
Posted by Jerry Stuckle on 10/27/76 11:21
Robertico wrote:
> Hi,
>
> I created a mailform using a page with the form fields (main mail form) and
> a php page with some php-code.
> <form method="post" action = "result.php">
> I added some validation to my form for the required fields and email
> address.
> When a required field is empty the results.php shows a message and the user
> has the possibility to go back to the mailform (link back).
> It's also used when sending succeeds.
> But when an user goes back, the form is empty (alread filled fields are
> empty again).
> Now i'am looking for ((a)nother) possibility to solve this.
> For example stay within the main mail form and set the focus on the empty
> field (and/or change text color to red)
> I prefer not to use some javscript, because javascript could have been
> disabled .
>
> Robertico
>
>
>
I find it easiest to post the information back to the same forum. Validate the
info, and if there are errors, display error messages. If not, complete the
mail process and go to the "thank you" page.
A side effect is they don't need to press a button to go back to the form - it's
already there.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|