I just migrated from a Ubuntu PHP workstation environment back to Windows and am using xampp. I have some code, for example:
<input type="text" name="txtEmail" value="<?=$emailaddress;?>"/>
that I swear to work to display a variable in a text box when I was developing earlier. But when I loaded the page in Windows / xampp, it just put that text between quotation marks in a text box. Instead, I ended up changing it to something like:
<input type="text" name="txtFirstName" value="<?php echo($firstname);?>" />
The latter makes sense, but I think I thought there was a reduction or something else, and I must be going crazy because I'm sure the first method worked on a difference environment.
So what is the best way to do this?
html php
Peter Tirrell
source share