RE: [PHP] form submission error trapping

2002-02-18 Thread Jill . Baker
Here's what I did. $error = ; if (error_in_field_1) $error .= A; if (error_in_field_2) $error .= B; if (error_in_field_3) $error .= C; and so on. Then, when displaying the form... if (strstr($error,A)) { echo You forgot to fill in this fieldbr\n; } echo input type=\text\ name=\Whatever\

FW: [PHP] Newbie question about links

2002-02-14 Thread Jill . Baker
That won't work. If you relocate using header(Location: ...) then it DOES show the original URL in the browser's address field. There are other ways of relocating which don't do this. For instance: (1) include(real-path); (2) readfile(real-path); Jill -Original Message-

RE: [PHP] URL encoding

2002-02-13 Thread Jill . Baker
Okay - looks like you are using a weird character mapping. Let's be clear about the names of encoding standards, so we don't get confused. There is no such thing as ASCII 0222. ASCII characters are seven bits wide. Period. Their range is hex 00 to 7F. Anything outside of that range is, by