and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hey people!
I am looking to figure out how when I select an item on a select box. The page is refreshed and the info in the select box is posted back to the page
E.g
[syntax="html"]<select name="sport">
<option value="null" selected="selected">-select-</option>
<option value="rugby" >-select-</option>
<option value="football" >-select-</option>
</select>
Basically am trying to reload page so I can put what is in the select box in a php variable so it can be used in real time. Any help would be amazing! Thanks!!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
woops soz I just posted it using code thinking it would. I will keep it neater from now on.
I know I need to use javasctipt to submit the form, but am pulling sql tables in and I need to store the result in php so I can pull the next sql file in the following select box.
So basically I need to work out how to reload the page onselect of drop down select box and post the result back to the page so I can use the selected data and update the select box below.
Basically making a chained select box. On select of select box one the second select box inputs sql selections available!!
woops soz I just posted it using code thinking it would. I will keep it neater from now on.
I know I need to use javasctipt to submit the form, but am pulling sql tables in and I need to store the result in php so I can pull the next sql file in the following select box.
So basically I need to work out how to reload the page onselect of drop down select box and post the result back to the page so I can use the selected data and update the select box below.
Basically making a chained select box. On select of select box one the second select box inputs sql selections available!!
I dont know if anyone was trying to do what I said? But here is some code on what I have so far! If anyone can see a problem with this code please tell me!
I am slighly worried about running this on a big form... because it will post all info with out verification if I dont do it right but what my aim is to post everything back and use the submit button to verify and post all the data again later.... this worries me because am not sure I will be able to do this but if it works out I will post the next code. The reason am doing this is so I can pass sql data in! Guess I have to try get it submiting and verfing now! If anyone thinks this form is dangous or unsecure can they please point out why! Thanks