RE: [PHP] Help with PHP and HTML
| From: | Jay Blanchard | Date: | Thu, 26 Sep 2002 11:46:24 +0000 |
| Subject: | RE: [PHP] Help with PHP and HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117697@lists.php.net to get a copy of this message | ||
[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! *
*****************************************************