Jason28 Posted May 22, 2009 Share Posted May 22, 2009 I always googled for examples and to my surprise some AJAX tutorials had errors in them when I tried to run them on my server even though I know that my server supports it since I have a few working AJAX scripts. Anyway, can anyone please provide a very simple AJAX example that uses php and a form field where if you press a submit button it will display a selection from a dropdown and/or textarea menu? For this example if it could just display the $_POST value result that would be fine. I know php and mysql but would like an AJAX example so I could mimic it to do multiple things using php. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/159215-a-simple-form-submit-ajax-example/ Share on other sites More sharing options...
Axeia Posted May 22, 2009 Share Posted May 22, 2009 http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_httprequest_js1 Doesn't get much simpler than that. Quote Link to comment https://forums.phpfreaks.com/topic/159215-a-simple-form-submit-ajax-example/#findComment-839941 Share on other sites More sharing options...
Jason28 Posted May 22, 2009 Author Share Posted May 22, 2009 Ok thanks. So this will work with all browsers? Because all of the AJAX examples I have seen use about 999999 lines of code. Quote Link to comment https://forums.phpfreaks.com/topic/159215-a-simple-form-submit-ajax-example/#findComment-840149 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.