Click here to Skip to main content
15,905,874 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: MYSQL connect through PHP Pin
Shamit Kumar Tomar9-Aug-10 18:28
Shamit Kumar Tomar9-Aug-10 18:28 
AnswerRe: MYSQL connect through PHP Pin
Rockyonfire15-Aug-10 11:48
Rockyonfire15-Aug-10 11:48 
QuestionHow to display the image in html Pin
sarang_k26-Jul-10 20:52
sarang_k26-Jul-10 20:52 
AnswerRe: How to display the image in html Pin
Peace ON27-Jul-10 0:45
Peace ON27-Jul-10 0:45 
AnswerRe: How to display the image in html Pin
bishtharish27-Jul-10 23:09
bishtharish27-Jul-10 23:09 
QuestionHow to convert from pdf to doc in php Pin
sarang_k26-Jul-10 18:52
sarang_k26-Jul-10 18:52 
QuestionPostmaster Redirect - Mailsystem Failure Delivery Pin
Jayapal Chandran26-Jul-10 7:59
Jayapal Chandran26-Jul-10 7:59 
Questionchoosing a opensource cart Pin
duta25-Jul-10 5:06
duta25-Jul-10 5:06 
QuestionHow to embedded the image in doc using php Pin
sarang_k23-Jul-10 1:04
sarang_k23-Jul-10 1:04 
AnswerRe: How to embedded the image in doc using php [modified] Pin
enhzflep24-Jul-10 21:17
enhzflep24-Jul-10 21:17 
GeneralRe: How to embedded the image in doc using php Pin
sarang_k26-Jul-10 20:57
sarang_k26-Jul-10 20:57 
GeneralRe: How to embedded the image in doc using php Pin
enhzflep27-Jul-10 12:34
enhzflep27-Jul-10 12:34 
QuestionExporting data to a doc file in php Pin
sarang_k22-Jul-10 21:21
sarang_k22-Jul-10 21:21 
AnswerRe: Exporting data to a doc file in php Pin
senorbadger18-Aug-10 3:38
senorbadger18-Aug-10 3:38 
QuestionDisplaying entire row into different text boxes Pin
rashmin8820-Jul-10 5:30
rashmin8820-Jul-10 5:30 
AnswerRe: Displaying entire row into different text boxes Pin
cjoki21-Jul-10 8:23
cjoki21-Jul-10 8:23 
GeneralRe: Displaying entire row into different text boxes Pin
rashmin8822-Jul-10 19:14
rashmin8822-Jul-10 19:14 
QuestionHow to export to doc in php Pin
sarang_k20-Jul-10 0:48
sarang_k20-Jul-10 0:48 
AnswerRe: How to export to doc in php Pin
Peace ON20-Jul-10 1:11
Peace ON20-Jul-10 1:11 
GeneralRe: How to export to doc in php Pin
sarang_k20-Jul-10 1:38
sarang_k20-Jul-10 1:38 
GeneralRe: How to export to doc in php Pin
Jayapal Chandran26-Jul-10 8:29
Jayapal Chandran26-Jul-10 8:29 
QuestionPHP/SQL -> Duplicate data on Insert when Page is refreshed Pin
lgmanuel19-Jul-10 22:53
lgmanuel19-Jul-10 22:53 
AnswerRe: PHP/SQL -> Duplicate data on Insert when Page is refreshed Pin
Peace ON20-Jul-10 0:01
Peace ON20-Jul-10 0:01 
AnswerRe: PHP/SQL -> Duplicate data on Insert when Page is refreshed Pin
cjoki20-Jul-10 4:53
cjoki20-Jul-10 4:53 
A refresh will resubmit $_POST variables, that if you are using them in your page logic, means the logic will repeat. These values are stored on the users browser so using unset to clear the post variable will do you no good, you need to do 2 things the first is as the other poster says, make certain the information does not already exist. The second is when the data is processed send the user to a specific URL. This will keep the user from refreshing the page and having post vars repeated.

On a side note if you are echoing any information before you redirect the user, they will get a error message (headers already sent or some such). You can fix this with eith redirect by using javascript or you can redign your code to put all the echo'd information into a variable and echo that just after you redirection code.
AnswerRe: PHP/SQL -> Duplicate data on Insert when Page is refreshed Pin
Jayapal Chandran26-Jul-10 8:23
Jayapal Chandran26-Jul-10 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.