06202006 1844 GMT-6
Ok. This is my testing code:
else if (isset($_POST['change'])) {
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>';
}
and I tried
else if (isset($_POST['change'])) {
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>';
}
Neither have worked.
wade
Mike Brandonisio wrote:
>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
>
>
[Non-text portions of this message have been removed]
------------------------ 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/