Saddly not, i get the error with that codeing:
Code:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/main/public_html/templates/editprofile.html on line 25
------------------
Also, just changed some codeing:
Code:
<select name="newcountry" id="newcountry">
<option <? $val="Afganistan"; echo "value=\"".$val."\""; if ($country == $val) echo "selected"; ?>Afghanistan</option>
<option <? $val="Albania"; echo "value=\"".$val."\""; if ($country == $val) echo "selected"; ?>Albania</option>
</select>
This works!!!
ALTHOUGH
It is unable to display the name of the country, this is the html code it produces.
Code:
<select id="newcountry" name="newcountry">
<option value="Afganistan" selected option Afghanistan<></option>
<option value="Albania" option Albania<></option>
</select>
Any Idea.. whats gone on their?
--------------------------------
Fixed!
All that was missing in the end up was a > after ?>
__________________
Please login or register to view this content. Registration is FREE
NuWeb 10101101
Last edited by NuWeb.co.uk; 10-30-2005 at 07:08 PM..
|