Hi,

Using single quotes on your print statement like:


> print'
>               <form method="post" action="testredo2.php">
>               First name:<input type="text" name="fname" value="<?php echo
> $_POST['fname']; ?>" />
>               <input type="submit" name="one" value="Submit" />
>               </form>';
>

will give you the var name not the content of the var. To have the  
var processed you need double quotes:

print"<form method=\"post\" action=\"testredo2.php\">
                First name:<input type=\"text\" name=\"fname\" value=\"$_POST 
['fname']\" />
                <input type=\"submit\" name=\"one\" value=\"Submit\" />
                </form>";


Sincerely,
Mike
-- 
Mike Brandonisio                 *    IT Planning & Support
Tech One Illustration            *    Database Applications
tel (630) 759-9283               *    e-Commerce
[EMAIL PROTECTED]  *    www.techoneillustration.com


On Jun 21, 2006, at 7:42 AM, Wade Smart wrote:

> 06212006 0741 GMT-6
>
> I checked and on this machine Magic Quotes was on.
> I turned it off, restarted, and now
>
> value=" ' . $_POST['fname'] . ' " now produces
> '.$_POST['fname'].'
>
>
>
> Mike Brandonisio wrote:
>
>> Hi,
>>
>> Is this being pulled from a Database? It looks like magic quotes are
>> on and the single quotes are being escaped.
>>
>> I'm not sure what would be escaping your single quotes. Are you
>> running this through some kind of cleaner function to prevent
>> malformed entries?
>>
>> just to be clear value="'.$_POST['fname'].'" shows in source?
>>
>> but this \'.$_POST[\'fname\'].\' is what you see in the text field
>> for the value with the escaped quotes?
>>
>> Sincerely,
>> Mike
>>
>>
>
>
> ------------------------ Yahoo! Groups Sponsor -------------------- 
> ~-->
> See what's inside the new Yahoo! Groups email.
> http://us.click.yahoo.com/2pRQfA/bOaOAA/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 --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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