Hi,

you can either interleave <?php like this:
<?php
do php stuff here
?>
First name:<input type="text" name="fname" value="<?php echo $_POST 
['fname']; ?>" />

<?php
do php stuff here
?>

or

put it in var like this:

$var = 'First name:<input type="text" name="fname" value="'.$_POST 
['fname'].'" />';

echo($var);

Also not that you end value="'.$_POST['fname'].'' with a single quote  
it should be double  like above.

Sincerely,
Mike
-- 
Mike Brandonisio          *    Web Hosting
Tech One Illustration     *    Internet Marketing
tel (630) 759-9283        *    e-Commerce
[EMAIL PROTECTED]    *    http://www.jikometrix.net

     JIKOmetrix - Reliable web hosting


On Jun 20, 2006, at 4:35 PM, Wade Smart wrote:

> 06202006 1631 GMT-6
>
> I have a if statement that will call a include if its needed.
> But I have found that the code within the include doesnt function  
> like I
> thought it would. Im calling this:
>
> First name:<input type="text" name="fname" value="'.$_POST 
> ['fname'].'' />
>
>
> but the value is causing a problem. How do I write this when its  
> called
> in an include?
>
> wade
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor -------------------- 
> ~-->
> Great things are happening at Yahoo! Groups.  See the new email  
> design.
> http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/HKFolB/TM
> -------------------------------------------------------------------- 
> ~->
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to