|
|||||||
New to SitePoint Forums? Register here for free!
|
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Member
Join Date: Oct 2009
Posts: 6
|
Help on form reload problem
Dear all, I am writing a very simple code which involve HTML, PHP and Mysql, here is what I have done and the Help I need:
the 1st file: index.php PHP Code:
PHP Code:
PHP Code:
PHP Code:
I have a DB named mydb in MySQL, which have on table, comments: Code:
CREATE TABLE IF NOT EXISTS `comments` ( `user` varchar(30) NOT NULL, `comments` varchar(80) DEFAULT NULL, ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; load index.php after you creat the table using above sql..and jump between index.php?id=aa and index.php?id=bb, and u can submit the form and see the comments imm showing after ur submit... it looks great, BUT My problem: if user click the reload or refresh in IE, there is a warning window popup, and remind user not re-submit, but if some user really resubmit, my table will have duplicate record... HELP is need, with no change on my entire scripts stucture, means I must use above ?id=$_GET(id) tech to jumping between the aa file and bb file, and I must include both form and insert process in same file, the user expriense should not been impact........ what I need is while user click the reload, no pop window, no duplicate record been insert thanks in advance for what ever help you can provide...but I already try to search solution, so, pls don't just give me very generical hints.. I am total lost....need real help |
|
|
|
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 08:42.








Threaded Mode