Posts: 55
	Threads: 25
	Joined: May 2009
	
Reputation: 
0
	 
	
	
		I have one include to collect form information from multiple sub-domains which are not connected. Does anyone know of a way to submit the form , stay on the page and display a message that the form was received.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,456
	Threads: 39
	Joined: Dec 2008
	
Reputation: 
6
	 
	
	
		Sure, no problem. You could do it in two ways: one, just use the API and don't specify a "next_page" option (or specify the same one that you're currently on). Then in the page (in PHP), check to see if the form has been submitted. If it has, show a "Form Submitted" message - otherwise just show the form.
Alternatively, you could submit the form via Ajax and just show a "Form Submitted" message in the page, once you get a success response from the server. 
Kind of high-level advice, but it's very do-able.
- Ben
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,456
	Threads: 39
	Joined: Dec 2008
	
Reputation: 
6
	 
	
	
		Excellent! No, that's much simpler, actually (and will work without JS enabled...).
- Ben