stonedeft — 2010-07-02T18:07:01-04:00 — #1
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'] ?>
When I submt this form how do I open a new modal box with recieve.php in it.
I have no clue.
any ideas? Thanks
stonedeft — 2010-07-05T16:12:25-04:00 — #2
Thanks for the links headed right there now
tahirjadoon — 2010-07-05T15:43:46-04:00 — #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:
- Create button click or form submit event
- get your form data, use .seralize()
- using [.ajax (type = post) or short hand [URL="http://api.jquery.com/jQuery.post/"].post](http://api.jquery.com/jQuery.ajax/), pass the data to the page
- 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:
stonedeft — 2010-07-04T16:13:49-04:00 — #4
Hmm no reply? does this mean it isn't possible?