SitePoint Sponsor

User Tag List

Results 1 to 12 of 12

Threaded View

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2012
    Location
    N.Ireland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form re-direct to a different URL.

    Okay apologies this is'nt technically PHP yet I trying to develop a simple select form that will action another url and fulfill the request of the option selected.

    The site is http://www.ding.com/

    The pages that each option will open are;

    a-distirct
    b-district

    So option a on the form would take the user to http://www.ding.com/a-district

    I cant seem to get this right heres the form markup I'm toying with;

    Code:
    <form id="select" action="http://ding.com" method="get">
    	<select name="/">
    		<option value="">Please choose</option>				
    		<option value="a-district">A district</option>	
    		<option value="b-district">B-District</option>	
    </select>
    	<input type="submit" value="Go" />
    </form>
    The resulting url is showing "/?%2F=a-district"......

    Just noticed ding.com is being held - i'm only using this as an example....
    Last edited by stephen_; Dec 13, 2012 at 06:57. Reason: Disclaimer


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •