hi i am a newbie php programmer and i am currently working on something but is having problems with. What am trying to do is create a simple addressbook, i am able to post the data on the DB however when i refresh the page the data gets reposted.
Here is the code i have:
<?php session_start();
$_SESSION['values']= array($_POST['name'], $_POST['bday'], $_POST['addr'], $_POST['phone'], $_POST['email']);
if(isset($_POST['send'])){
include("connect.php");
include("insert.php");
insert();
echo "$_POST[name] ". 'had been added to your address book.';
if($_SESSION['values'] != NULL){
unset($_SESSION['values']);
}
}
?>
Hope you can help me with this, thanks!!!