Is it just showing that one or in all three text fields?
-----Original Message-----
From: craig [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 11:24 AM
To: Php
Subject: [PHP] textfields showing php tags & code
Hi All,
This one has me stumped, it worked yesterday, but not today,
and I didn't change anything (as far as I know).
This is some of the code from a function which is now showing the
<?php echo $quantity; ?> code inside the textareas, rather than
the passed value from the function call.
any ideas are greatly appreciated.
Craig
function showForm($quantity='', $fname='', $lname='') {
?>
<form action='orderX.php' method='post' name='orderForm'>
<table border='0'>
<tr>
<td align='right'>Quantity:</td>
<td><input name='quantity' type='text' size='3' value='<?php
echo $quantity; ?>'>*</td>
</tr>
<tr>
<td align='right'>First Name:</td>
<td><input name='fname' type='text' size='25' value='<?php
echo $fname; ?>'>*</td>
</tr>
<tr>
<td align='right'>Last Name:</td>
<td><input name='lname' type='text' size='25' value='<?php
echo $lname; ?>'>*</td>
</tr>
</table>
</form>
<?php
}
--
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