Hi,
When you say, "Neither have worked." Do you mean you are not getting
the form printed?
Try elseif no space between else and if.
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 20, 2006, at 6:47 PM, Wade Smart wrote:
> 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
>
>
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Something is new at Yahoo! Groups. Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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/