If I'm passing this in my url &state=NJ how do I get it to prepopulate "NJ" in a drop down box? I tried php echo get for the value.. didn't work
I think its something along these lines, but this code blows up:
I think its something along these lines, but this code blows up:
PHP:
<option value="AL" <?php if (substr($_GET['state'], == AL) { echo "selected=\"selected\""; } ?>></option>