I wrote a PHP script that insert data into a database. After the user click submit, the page goes to the default setup. But on the database, the data is inserted twice. So I figured that I have to set these data (PHP variables) into null or something after inserting. But I don't know how.
For example, a user has typed John Doe under Name field and click button "Submit" only once. Then the page goes back to default (The Name entry field is blank). In the database table, this "John Doe" appears twice.
Suggestions?
For example, a user has typed John Doe under Name field and click button "Submit" only once. Then the page goes back to default (The Name entry field is blank). In the database table, this "John Doe" appears twice.
Suggestions?