Jump to content

Dropdown Menu onchange Help


j5646w

Recommended Posts

Hi there I have a problem with the following code

 

If I select the dropdown option it shows - ad.php?id=animal& region=

The Value is not been retrieved - what am I doing wrong?

 

 

<select onChange="window.location='ad.php?id=<? print ($type); ?>& region=' + this.value" id="reg" name="reg"  title="Select Region">

    <option value"">All Region</option>

    <option value"eastern cape">Eastern Cape</option>

    <option value"free state">Free State</option>

    <option value"gauteng">Gauteng</option>

    <option value"kwazulu natal">KwaZulu Natal</option>

    <option value"limpopo">Limpopo</option>

    <option value"mpumalanga">Mpumalanga</option>

    <option value"northern province">Northern Province</option>

    <option value"western cape">Western Cape</option>

    </select>

 

                </form>

Link to comment
https://forums.phpfreaks.com/topic/237094-dropdown-menu-onchange-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.