PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Good Day Earthlings!!!
is it possible that if i press the submit button in a form it will redirect me in another page and still it will add in the database? if its possible, can someone please help me how to do that code.
thanks in advance
<?php
if (!empty($_POST)) {
//validate your form here
$valid = true;
if ($valid) {
//enter info into db if valid
header('Location: http://someotherpage.com');
exit();
}
}
?>
<form>
<input ... >
</form>