There is nothing wrong with your code, I just tried it on my site and it
works fine.

Try and run the function you posted on its own, without adding back anything
that you removed, just to make sure you didn't inadvertently remove the
problem.

If it works, then you know where to look, if it doesn't work, I would check
your webserver and see if anyone has messed around with the PHP
configuration.

Someone must have changed something if it was working before.h

-----Original Message-----
From: craig [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 21, 2004 12:21 PM
To: Donald Tyler
Subject: RE: [PHP] textfields showing php tags & code

all of them, there are actually 11 fields, but I shorted
the code up.

Craig

> -----Original Message-----
> From: Donald Tyler [mailto:[EMAIL PROTECTED]
> Sent: January 21, 2004 11:12 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] textfields showing php tags & code
> 
> 
> 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
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to