
March 8th, 2013, 06:29 AM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 7
Time spent in forums: 1 h 10 m 54 sec
Reputation Power: 0
|
|
|
PHP-General - How to redirect to a javascript function after $insertGoto
Hi, I am a new on php and sql statements. I'm working with a java script like javascript :cargarExterno('medaceptacondiciones.php', 'contenido')
I need, when update a table, in the sentence $insertGoTo = " " to load a php file using that javascript sentence.
This is the actual code
Code:
$insertGoTo = "medingresacaso.php?recordID=".$_POST['num_caso'];
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
The reason is that i am using DIVs in order to keep loading files in one index.php (
Code:
<a href="javascript:cargarExterno('medlistadocasos.php', 'recargado');">
), but in this case, when Insert into table loads the next page in another window.
I need to load $Insertgoto in the same div
Thanks
|