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
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'];
}
?>