![]() |
do away with the submit button?
My php guy cannot figure out how to do away with the submit box - um, like if I had a drop down menu and a visitor clicked on a entry of it - I would like it to go immediately to a different php inset selection on the page - (to load it in the center of the page vertically down.... like a events list - in otherwords to replace just the center of the page php code) WITHOUT using a submit button. Can someone tell us where to go to get info on how to do this? is this a php or a html funtion?
|
Try... <select name="name" onChange="this.form.submit()"> ...
|
<select name="name" onChange="this.form.submit()">
This is apparently the first line of a html dropbox yes? I need to know what I should put in "this.form.submit()" Can you direct me to a html refeence that would tell me? |
Quote:
|
Hi, Andrew and thanks for the reply
We are having a issue. I want to have a drop down list of type of events on countyfairgrounds.net - when the user clicks a type of event in this drop down box - it would automatically pull the type of that event - say home and garden shows - from our MySQL databse WITHOUT hitting a submit button.... and we cannot figure out how to submit a form without the button - that is the issue. I am doing some Yahoo browser searches but no results so far. |
As far as I can see your question has already been answered:
Code:
<select name="name" onchange="this.form.submit()">This, of course, is assuming that the select is contained within a form, which has a method and an action, and that you have a page that processes the submitted data. |
Quote:
Quote:
They've not worded it very well though. |
Quote:
|
| All times are GMT +1. The time now is 06:58 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.