Re: Help with PHP and HTML
| From: | Marek Kilimajer | Date: | Thu, 26 Sep 2002 13:08:58 +0000 |
| Subject: | Re: Help with PHP and HTML | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117714@lists.php.net to get a copy of this message | ||
When we are at it let's don't forget htmlspecialchars
<input name="cliemail" type="text" size="48" value="<?echo htmlspecialchars($clil); ?>"
readonly>
skitum wrote:
hey folks, don't forget quotes ;o) <td><input value="<? echo $cost; ?>" name="txtSubTotalAmount" size="40" readonly></td> I use one like this: <input name="cliemail" type="text" size="48" value="<?echo htmlspecialchars($clil); ?>" readonly> and it works ok. Peace & Love skitum ----- Original Message ----- From: "Jay Blanchard" <jay.blanchard@niicommunications.com> To: "'Ken'" <admin@kabwebs.com>; <php-general@lists.php.net> Sent: Thursday, September 26, 2002 1:46 PM Subject: RE: [PHP] Help with PHP and HTML[snip] I have a HTML form that has a session variable called $cost. Now I want to set the value to this table data input field. Anyone know how this is accomplished? <td><input value=$cost name="txtSubTotalAmount" size="40" readonly></td> [/snip] Ken, You question is not too clear, but I will try to help. You want the form element to reflect the value of $cost? <td><input value=<?php print($cost); ?> name="txtSubTotalAmount" size="40" readonly></td> I apologize if this is not what you are asking. Jay Errors have been made. Others will be blamed. ****************************************************** Texas PHP Developers Conf Spring 2003 * * T Bar M Resort & Conference Center * * New Braunfels, Texas * * Contact jay.blanchard@niicommunications.com * * ** Want to present a paper or workshop? Contact now! * ***************************************************** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php