[thelist] PHP/html form queston: a better way to do this form

Mark Joslyn Mark.Joslyn at SolimarSystems.com
Thu Aug 11 18:13:36 CDT 2005


Just string replace the "_" with an empty space before you return the error
to the screen:

str_replace("_", " ", $error_message);

mj

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Bruce Gilbert
Sent: Thursday, August 11, 2005 3:45 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] PHP/html form queston: a better way to do this form


thanks for the reponses regarding my original question regarding php and
form submissions. My next question is this:

say you have something like

<td><label for="first_name">First Name:</label><br> <input class="textbox" 
                        maxlength="35" size="25" name="first_name"
id="first_name" value="{$_POST['first_name']}" ></td>

for proper validation and good practice do you need to use the _ b/c when
you get the error to something like that it looks funny.

you didn't enter your first_name!
you didn't enter your home_telephone_number!

 etc.
 etc.

BTW I am validating against html 4.0 transitional.



-- 
::Bruce::
-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 



More information about the thelist mailing list