legohead6 Posted January 25, 2008 Share Posted January 25, 2008 well i have a select box currently you have to click submit, but how would i make it so that when you select a value that php can then get that value without having a submit button? Link to comment https://forums.phpfreaks.com/topic/87713-getting-_post-values-without-a-submit-button/ Share on other sites More sharing options...
ziv Posted January 25, 2008 Share Posted January 25, 2008 the only way to get a data, is to send it. if you want php to get the selectbox data after it change, you can add an event to this element (onchange) that redirect the page (using javascript) and add the data to the query string (GET) Link to comment https://forums.phpfreaks.com/topic/87713-getting-_post-values-without-a-submit-button/#findComment-448639 Share on other sites More sharing options...
priti Posted January 25, 2008 Share Posted January 25, 2008 well i have a select box currently you have to click submit, but how would i make it so that when you select a value that php can then get that value without having a submit button? AJAX suits your needs Link to comment https://forums.phpfreaks.com/topic/87713-getting-_post-values-without-a-submit-button/#findComment-448646 Share on other sites More sharing options...
legohead6 Posted January 25, 2008 Author Share Posted January 25, 2008 hmm, i guess i will look into javascript and ajax and see what one i want to learn next:p Link to comment https://forums.phpfreaks.com/topic/87713-getting-_post-values-without-a-submit-button/#findComment-448649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.