Question : posting script for a modal window

I have a created a basic modal window with a form in it. I a php script which will allow me to post the variables and then insert them into mysql. Any help would be greatly appreciated..thanks

Answer : posting script for a modal window

Hi Brad,

You can try the following code:

Hope it helps

Many Thanks

Ps: Do you mean mailing script?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
// JavaScript Document --Edited by Altin Bardhi 20-08-2010--

 $(document).ready(function(){
   //Start main

      //--------------------------------------------------------------
      $("#submit_btn").click(function(event) {
									  
	      $.post('proces_data.php', $("#myForm").serialize(), function(data) {

			//RETURN DATA RESPONSE HERE IF NEEDED
					
		  });//End post data
		 
   });//End ready function
	  
	  
	  The above completes the data transmission to the php page.
	  When to the php page then you can use:
	  
	  if(isset($_POST['name'])){
		  
		  $query="Your query";
		  
	  } 
Random Solutions  
 
programming4us programming4us