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? tdinput 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? tdinput 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 [EMAIL PROTECTED] * * * * 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
Re: [PHP] Help with PHP and HTML
hey folks, don't forget quotes ;o) tdinput value=? echo $cost; ? name=txtSubTotalAmount size=40 readonly/td I use one like this: input name=cliemail type=text size=48 value=?echo $clil; ? readonly and it works ok. Peace Love skitum - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Ken' [EMAIL PROTECTED]; [EMAIL PROTECTED] 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? tdinput 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? tdinput 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 [EMAIL PROTECTED] * * * * 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with PHP and HTML
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) tdinput 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 [EMAIL PROTECTED] To: 'Ken' [EMAIL PROTECTED]; [EMAIL PROTECTED] 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? tdinput 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? tdinput 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 [EMAIL PROTECTED] * * * * 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with PHP and HTML
[snip] 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) tdinput value=? echo $cost; ? name=txtSubTotalAmount size=40 readonly/td [/snip] Well now we have gone too far! :^] In the original post the variable was $cost. But let's not forget addslashes() or stripslashes(), unless, of course, magicquotes is on, and then if register_globals is off then; input name=cliemail type=text size=48 value=?echo htmlspecialchars($_POST['clil']); ? readonly or input name=cliemail type=text size=48 value=?echo htmlspecialchars($_GET['clil']); ? readonly :^] Jay * * Texas PHP Developers Conf Spring 2003* * T Bar M Resort Conference Center* * New Braunfels, Texas * * Contact [EMAIL PROTECTED] * * * * 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