hey ppl. I have many submit buttons in a form. Each of them does its thing in different php pages. But when, for example, 'add' button goes to 'add.php' it does its work but stays there) how to redirect page back? thanks
kracko
0
Light Poster
Recommended Answers
Jump to PostThere are 2 simplistic ways.
The first and most recommended is the header redirect:
header("Location: pagename.php");
That sends the header location to the browser, telling it to redirect itself to whatever you replace pagename with.
The second, less elegant way:
<meta http-equiv="refresh" …
All 4 Replies
Nyight
10
Junior Poster in Training
ko ko
97
Practically a Master Poster
vaibhav1983
1
Junior Poster
kracko
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.