Re: using <input> tags with php
| From: | janet at valade dot com | Date: | Sat, 01 Feb 2003 22:33:34 +0000 |
| Subject: | Re: using <input> tags with php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133928@lists.php.net to get a copy of this message | ||
In a message dated 2/1/2003 2:02:06 PM Pacific Standard Time,
rusty_81@msn.com writes:
>i tried getting the values into vars using fetch_array/fetch_object and
>fetch_row and tried to put them in variables but for some odd reason it
>really doesnt work because when i try to use the vars in the value section
>instead of printing in the edit box the content of the variable i usually
>end up with "?>", ">", "<?php", or "}?>"
>instead... any reason this shows
>up? and when i do:
>echo "<input type=text name=$name value='$new_var'>";
>then on the web page i end up with some thing like this instead of the edit
>box:
>">";;">
>}?>
>any reason for that?
It sounds like $name and/or $new_var may be empty. Did you echo the variables
before using them in your form to check whether the values from the database
are actually in the variables?
Janet