Submit form twice or refresh two times
Hi I am using php and i want to submit form on onclick
event of radio button.
when form submission is done, than after I want to reload my page.
Means first form is submitted and after form submit I want to reload my page aga开发者_JS百科in.
Is it possible?
I have tried it with javascript but not get any idea how to do it..
Thanks in advance.
header('Location: http://url.to/reload');
exit;
Make sure to do this before any output on that page otherwise you'll get an error about headers already having been sent.
精彩评论