![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| http://home.no.net/ingernet/tutorial.php I like the contact form I made for myself ... |
#3
| ||||
| ||||
|
|
Inger Helene Falch-Jacobsen wrote: http://home.no.net/ingernet/tutorial.php I like the contact form I made for myself ... I don't :-) |
|
When someone types a large message, submits and then clicks the link "Go back to contact form ", everything is lost. |
|
Invalid email-addresses are accepted. Better: handle everything in the same page and apply some more validation to the email-address |
|
Example: http://www.nicoschuyt.nl/contact.php#Mailformulier |
#4
| |||
| |||
|
|
Invalid email-addresses are accepted. Better: handle everything in the same page and apply some more validation to the email-address Validation is done by sending a copy of the mail to my visitor. If you don't get a verification, I cant reply either. What is the advantage of having it all on the same page? How can I validate the email-address before the message gets sent? |
Most browsers are smart enough to remember what was entered prior to
#5
| |||
| |||
|
|
If, however, you also want to accomodate users without JS who don't fill in the form correctly ... instruct the user to use the back button ![]() |
|
Most browsers are smart enough to remember what was entered prior to submission. |
#6
| |||
| |||
|
|
Nico Schuyt wrote: When someone types a large message, submits and then clicks the link "Go back to contact form ", everything is lost. True, that is the one thing that annoys me too. How can I fix it? |
#7
| ||||||
| ||||||
|
|
Nico Schuyt wrote: Inger Helene Falch-Jacobsen wrote: http://home.no.net/ingernet/tutorial.php I like the contact form I made for myself ... I don't :-) OK! I posted it here to get feedback. When someone types a large message, submits and then clicks the link "Go back to contact form ", everything is lost. True, that is the one thing that annoys me too. How can I fix it? |
|
Invalid email-addresses are accepted. Better: handle everything in the same page and apply some more validation to the email-address Validation is done by sending a copy of the mail to my visitor. If you don't get a verification, I cant reply either. |
|
What is the advantage of having it all on the same page? |
|
How can I validate the email-address before the message gets sent? |
|
Example: http://www.nicoschuyt.nl/contact.php#Mailformulier Didn't see the light by looking at your form, I'm afraid. Can you post some code snippets or something? |
|
Please keep it as simple as possible... |
#8
| |||||
| |||||
|
|
Inger Helene Falch-Jacobsen wrote: Nico Schuyt wrote: When someone types a large message, submits and then clicks the link "Go back to contact form ", everything is lost. True, that is the one thing that annoys me too. How can I fix it? This is not a "go back" function at all. It is a "go forward" to a new instance of the form. Try it yourself. Get there and then look at your browsers history. The original form is way back there --- |
|
Two choices: 1) Replace that link with "<p>Please use your browsers back function to return to the form</p>. Browser support varies. Some of them might just erase the data anyway. |
|
2) In your "whatever.php" link in the error page rebuild the form as the user submitted it, filling in the form elements with the values you have squirreled away in session variables. |
|
BTW your "you must have done something wrong" message is inadequate. If your server side process has found something wrong then please tell me exactly what is wrong. Don't make me guess. If I were presented with this error in a production form I would simply leave the site. |
|
I agree with Nico. I don't like it. For ideas you could try googling for php mail scripts. There are thousands of them out there, many of them do validation. |
#9
| |||
| |||
|
|
How can I validate the email-address before the message gets sent? |
#10
| |||
| |||
|
| http://home.no.net/ingernet/tutorial.php When someone types a large message, submits and then clicks the link "Go back to contact form ", everything is lost. |
|
Well, it isn't simple :-) (when you want things like attachments; plain text alternatives etc) |
|
I built it myself. Next time I use the experience of others: http://phpmailer.sourceforge.net/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |