HighDots Forums  

Critique tutorial/recipe

Websites/HTML pages critique & reviews Discuss and review existing WWW material (alt.html.critique)


Discuss Critique tutorial/recipe in the Websites/HTML pages critique & reviews forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Stephen Poley
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-08-2004 , 01:38 PM






On Mon, 8 Nov 2004 13:47:06 +0100, "Nico Schuyt" <nschuyt (AT) hotmail (DOT) com>
wrote:

Quote:
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.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #12  
Old   
Inger Helene Falch-Jacobsen
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-08-2004 , 02:04 PM






Stephen Poley wrote:
Quote:
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.
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!


--
Inger Helene Falch-Jacobsen


Reply With Quote
  #13  
Old   
Nico Schuyt
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-08-2004 , 03:36 PM



Inger Helene Falch-Jacobsen wrote:
Quote:
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)


Nico
www.nicoschuyt.nl




Reply With Quote
  #14  
Old   
Nico Schuyt
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-08-2004 , 03:37 PM



Stephen Poley wrote:
Quote:
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.
I will reconsider it. Thanks!
--
Nico
www.nicoschuyt.nl




Reply With Quote
  #15  
Old   
Nico Schuyt
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-08-2004 , 03:48 PM



Inger Helene Falch-Jacobsen wrote:
Quote:
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
Much better (Though I still prefer a solution in the same page, and it is
better not to mention your e-mail address on the page (risk of spam))

Quote:
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?!
No :-) Only, like I said, if you want more options like HTML-mail with a
plain text alternative, attachments etc

--
Nico
www.nicoschuyt.nl




Reply With Quote
  #16  
Old   
Inger Helene Falch-Jacobsen
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-08-2004 , 05:18 PM



Inger Helene Falch-Jacobsen wrote:

Quote:
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!
Oh no! Not again! I meant to say: Stephen, you are
my hero!
How embarrassing...

--
Inger Helene Falch-Jacobsen


Reply With Quote
  #17  
Old   
Stephen Poley
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-09-2004 , 05:41 AM



On Mon, 8 Nov 2004 21:36:35 +0100, "Nico Schuyt" <nschuyt (AT) hotmail (DOT) com>
wrote:

Quote:
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!
<blush> That's most kind of you. :-)

Quote:
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

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #18  
Old   
Inger Helene Falch-Jacobsen
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-09-2004 , 06:25 AM



Nico Schuyt wrote:

Quote:
changed from php to htm and point to the Back button.
New URL for my form is
http://home.no.net/ingernet/cont.htm
No, that wasn't necessary, it was the

if (stristr($_SERVER["HTTP_ACCEPT"],
"application/xhtml+xml")) {
header("Content-type: application/xhtml+xml;
charset=iso-8859-1");
} else {
header("Content-type: text/html;
charset=iso-8859-1");
}
that forced Firefox to erase all fields. Seems
like it anyway.

I''ve returned to php and XHTML, but in plain
text/html, at
http://home.no.net/ingernet/cont.php

Quote:
Much better (Though I still prefer a solution in the same page,
Thanks! I am happy with my solution at this point.
Maybe I'll do it your way later... If I can figure
out how ;-)
I am grateful for all the advice - I can't make it
better if I don't know what's wrong!

Quote:
better not to mention your e-mail address on the page (risk of spam))
Thank you for your concern, but my email address
is safely coded in Javascript (no spam for a
year), and some people just don't know how to type
their own address ;-) Of course the mailto link
only works in IE so I have it in humanly readable
format as well, but still no spam...

Quote:
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
That's why I made my tutorial! I haven't found any
other quick-and-easy recipes on the 'net (even the
easy-peasy generator I used made me fumble and I
had to look around to find the other functions I
wanted).


--
Inger Helene Falch-Jacobsen


Reply With Quote
  #19  
Old   
Nico Schuyt
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-09-2004 , 07:42 AM



Stephen Poley wrote:
Quote:
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? :-)

--
Nico
www.nicoschuyt.nl




Reply With Quote
  #20  
Old   
Stephen Poley
 
Posts: n/a

Default Re: Critique tutorial/recipe - 11-09-2004 , 08:19 AM



On Tue, 9 Nov 2004 13:42:41 +0100, "Nico Schuyt" <nschuyt (AT) hotmail (DOT) com>
wrote:

Quote:
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
Fair enough. I think that's the first time I've had that reported.

It occurs to me that I could add the suggestion to change the window
size and then refresh. (Or to wait until the moon changes phase.)

Quote:
"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? :-)
Well it is - just not in all copies of IE6 all of the time ... (Just
tried it again in my copy to be sure - no missing text.) I more or less
agree with you (even ignoring the smiley) but when one is dealing with
intermittent bugs in a piece of software that is notorious for its
bugginess, there comes a limit ...

Another site I worked on recently was checked by four people in four
different copies of IE6, and displayed fine. Then another person said
the site looked wrong. It turned out that her copy of IE6 was only
loading two of the three stylesheets (and did it consistently each time
IE was restarted). On refreshing, all stylesheets were loaded.
<insert your own emoticon here>

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.