note 30700 added to function.stripslashes

From: Date: Wed, 26 Mar 2003 03:57:28 +0000
Subject: note 30700 added to function.stripslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-45834@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/function.stripslashes.php http://master.php.net/manage/user-notes.php?action=edit+30700 http://master.php.net/manage/user-notes.php?action=delete+30700 http://master.php.net/manage/user-notes.php?action=reject+30700

« previous php.notes (#45834) next »