note 30700 deleted from function.stripslashes by aidan

From: Date: Mon, 30 Aug 2004 11:07:10 +0000
Subject: note 30700 deleted from function.stripslashes by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75669@lists.php.net to get a copy of this message
Note Submitter: daevid at daevid dot com ---- Don't know exactly where to put this, but this is where I looked first, so maybe others will too. When using web forms, you should always use the double " rather than single ' for VALUE params like this: <INPUT Name="contact_lname" Size="40" MAXLENGTH="50" Value="<?=$contact_lname?>"> so that if you have a name like: "O'Donoghue" it will work automatically. If you use the single ' marks, then you will only see the "O" as HTML will interpret the ' in the name as the end ' for the VALUE. Not what you wanted, and it will save you a bunch of add/stripslashes() functions which get messy.

« previous php.notes (#75669) next »