Please give me a good suggestion but without using Ajax. I mean to say is it possible to do in JavaScript/J query or else.
My Issue : When i am submitting one page, the action class again return to this same page now as per my requirement i have to retain the state of some radio button and checked boxes checked as it checked before.
Any help will be appreciated.
If the form action redirects to the same page, i.e. you want to repopulate the same field that was just sent on the same page, you can just enter the form data as default value:
<form action="form.php" method="post">
<input type="text" name="name" placeholder="Enter your name" value="<?=$_POST['name']?>" />
</form>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With