How can I get post paramers from page redirection using ajax?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpuser123
    New Member
    • Dec 2009
    • 108

    How can I get post paramers from page redirection using ajax?

    I have a page client.php that submits a form and goes to server.php..
    server.php adds some post requests and redirects the page to client.php..
    Is it possible to use ajax here to access the post parameters from server.php ?

    I am a new bie in ajax and php.
    Server redirection = post request to client.php
    How can I use ajax here to prevent the page loading problem..

    client.php
    Code:
        <form name ="Play" method="post" action="server.php"><input name="fname" valie="fname" /><input name="sbmt" value="Submit"></form>
        <?php
           if (isset($_POST['rname'])){
             echo $_POST['rname'];
            }
         ?>
Working...