I want to after im done executing all the php. Not load anything after that. How would i do this?
Thanks for your help.
Printable View
I want to after im done executing all the php. Not load anything after that. How would i do this?
Thanks for your help.
Don't use echo or produce any output.
I can't because the way i have my register form coded is that, when you click register, it goes to code on the same file. So it still displays the register form once i click register.
Once you have registered the user, use the exit command:
Code:<?php
if ($_POST['username']) {
/* process data */
exit;
}
?>
<html>
...
<form>
....