![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Something like: if (!$strEmail=="" && (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $strEmail))) { $error="Invalid!";} |
#12
| |||
| |||
|
|
On Mon, 8 Nov 2004 13:47:06 +0100, "Nico Schuyt" <nschuyt (AT) hotmail (DOT) com wrote: Something like: if (!$strEmail=="" && (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $strEmail))) { $error="Invalid!";} Not too much like that. It seems to be a common misunderstanding that those are the only characters allowed in an e-mail address. Some ISPs may restrict you to that, but not all. /^[^@]+@[^@.]+\.[^@]*\w\w$/ is perhaps a little too permissive, but at least it won't reject a legal address. |
#13
| |||
| |||
|
|
Stephen Poley wrote: All that is great and fine, if the user enters his address with correct syntax and spelling, ie name (AT) address (DOT) domain, but what if he enters nam (AT) address (DOT) domain? He will get an OK message, but I can't get back to him. That's why I have that automatic receipt thing. Steven, you are my hero! I love your article "A four-level model for web pages". I wish every webmaster would read it! |
#14
| |||
| |||
|
|
On Mon, 8 Nov 2004 13:47:06 +0100, "Nico Schuyt" <nschuyt (AT) hotmail (DOT) com wrote: Something like: if (!$strEmail=="" && (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $strEmail))) { $error="Invalid!";} Not too much like that. It seems to be a common misunderstanding that those are the only characters allowed in an e-mail address. Some ISPs may restrict you to that, but not all. /^[^@]+@[^@.]+\.[^@]*\w\w$/ is perhaps a little too permissive, but at least it won't reject a legal address. |
#15
| |||
| |||
|
|
Nico Schuyt wrote: 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. This problem is hopefully solved now - I just changed from php to htm and point to the Back button. New URL for my form is http://home.no.net/ingernet/cont.htm |
|
I built it myself. Next time I use the experience of others: http://phpmailer.sourceforge.net/ That's one of the pages that just make me gasp for breath! Does it have to be that difficult? Do I need all that just to get email to my inbox?! |
#16
| |||
| |||
|
|
Stephen Poley wrote: Steven, you are my hero! I love your article "A four-level model for web pages". I wish every webmaster would read it! |
#17
| |||
| |||
|
|
Inger Helene Falch-Jacobsen wrote: Stephen Poley wrote: All that is great and fine, if the user enters his address with correct syntax and spelling, ie name (AT) address (DOT) domain, but what if he enters nam (AT) address (DOT) domain? He will get an OK message, but I can't get back to him. That's why I have that automatic receipt thing. Steven, you are my hero! I love your article "A four-level model for web pages". I wish every webmaster would read it! |
|
So I tried :-) http://www.nicoschuyt.nl/test/sbpoley.png (text disappears when scrolling down in IE6) |
#18
| ||||
| ||||
|
|
changed from php to htm and point to the Back button. New URL for my form is http://home.no.net/ingernet/cont.htm |
|
Much better (Though I still prefer a solution in the same page, |
|
better not to mention your e-mail address on the page (risk of spam)) |
| http://phpmailer.sourceforge.net/ That's one of the pages that just make me gasp for breath! Does it have to be that difficult? Do I need all that just to get email to my inbox?! No :-) Only, like I said, if you want more options like HTML-mail with a plain text alternative, attachments etc |
#19
| |||
| |||
|
|
Steven, you are my hero! I love your article "A four-level model for web pages". I wish every webmaster would read it! So I tried :-) http://www.nicoschuyt.nl/test/sbpoley.png (text disappears when scrolling down in IE6) By coincidence I added this page to my site yesterday: http://www.xs4all.nl/~sbpoley/webmatters/ie6here.html |
#20
| |||
| |||
|
|
Stephen Poley wrote: Steven, you are my hero! I love your article "A four-level model for web pages". I wish every webmaster would read it! So I tried :-) http://www.nicoschuyt.nl/test/sbpoley.png (text disappears when scrolling down in IE6) By coincidence I added this page to my site yesterday: http://www.xs4all.nl/~sbpoley/webmatters/ie6here.html "If you hit these problems on this or any other site I'm afraid I can only suggest: - refresh the page as necessary," Refresh doesn't help |
|
"or - download yourself a decent browser, such as Opera or Firefox. " Hehehe, That is about the same as "best viewed in... with ...". Shouldn't the most fundamental requirement in 'accessibility' be that it's legible in IE? :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |