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 $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?
>
> <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 [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

Reply via email to