|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to clean redirect when this happen
//Filename thisfile.php <html> <body> <!--i will put my header banner , tables, designs --> <? start_coding_function(); ?> </body> </html> <? function start_coding_function() { if(!empty($_POST['submit']): //insert to database; header('Location: thisfile.php?location=nextlocation'); else: echo 'Noinput'; endif; } ?> I doesnt' work,and when i refresh my browser it will insert another new data |
|
#2
|
|||
|
|||
|
Put all this stuff at the top before the '<html>'
PHP Code:
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > How to clean redirect when this happen |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|