Results 1 to 4 of 4
Jul 2, 2010, 14:07 #1
Jquery Pass form data inside Modal box
How do you pass form data inside a modal box?
<form action ="recieve.php" method post>
<input type="submit" name="submit" />
<?php echo $_POST['test'] ?>
I have no clue.
any ideas? ThanksDon't Panic
Jul 4, 2010, 12:13 #2
Hmm no reply? does this mean it isn't possible?Don't Panic
Jul 5, 2010, 11:43 #3
It is doable, do you have a sample code that we can look at?
If not then you'll need to do some thing like below:
1. Create button click or form submit event
2. get your form data, use .seralize()
3. using .ajax (type = post) or short hand .post, pass the data to the page
4. you'll receive the results back via call back which you can then show in the same modal window or close first modal window and open new and then show the results.
Take a look at the following tutorials, specially day 10 and 14:
And at this post, a lot of helpful links specified in this one:
http://www.sitepoint.com/forums/showthread.php?t=639320The beauty of life is not dependent on how happy you are,
but on how happy others can be because of you...
Jul 5, 2010, 12:12 #4
Thanks for the links headed right there nowDon't Panic