开发者

Submit form twice or refresh two times

开发者 https://www.devze.com 2023-02-12 15:17 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消