naynay99 — 2010-02-25T13:02:55-05:00 — #1
I have a form on my contact page. when the user fills out the info and clicks on my submit button, I need that page (send_form_email.php)to load inside my div.
this is what I have now -
<input type="submit" value="Submit" /></td>
I have tried this but it doesn't work, I get a blank page.
any help would be appreciated!
tommichi — 2010-02-27T11:20:30-05:00 — #2
Using <input type="submit"> will load the php page in your current window, so the problem would be with your php file.
If you want to load content into a DIV, then you would have to make an httprequest to the php file. In the php file you would have to ECHO whatever content you want displayed. All you need to do then is place your httprequest responsetext in the innerhtml of the target div....
stomme_poes — 2010-02-28T07:28:12-05:00 — #3
crmalibu — 2010-02-28T10:45:05-05:00 — #4
Good call Stomme poes, use the forms submit event.
stomme_poes — 2010-02-28T11:18:46-05:00 — #5
been readin' chris heilmann 'bout 'cessabillty... that and i tend to keyboard thru forms anywayz
crmalibu — 2010-02-28T11:27:34-05:00 — #6
Me too. I hate having to use the mouse to click a silly submit button when I can just hit the enter key. It's disappointing how many websites fail to account for this, and have broken forms.
naynay99 — 2010-03-01T12:00:59-05:00 — #7
Thanks for the replies. I will try them and report back. Instinctively, I always hit enter as well, then when that doesn't work, I press the button.