cmon1011
06-15-2006, 03:20 AM
i got this code:
$save_button1 = "<input type=\"submit\" name=\"knop\" value=\"save\" onClick=\"setValues( '1' );\" class=\"formbutton\">";
$save_button2 = "<input type=\"button\" name=\"knop\" value=\"save\" onClick=\"setValues( '1' );document.location.href='cmc.php?id=$relation_id&refreshTopMenu=true&type=sales&search='\" class=\"formbutton\">";
the purpose is:
-to save the value
-go to other page
the $save_button1 can save the value, but it can't go to the other page
the $save_button2 can't save the value, but it does go to the other page
is there anyway to make the button can go both of the purpose?
thx
$save_button1 = "<input type=\"submit\" name=\"knop\" value=\"save\" onClick=\"setValues( '1' );\" class=\"formbutton\">";
$save_button2 = "<input type=\"button\" name=\"knop\" value=\"save\" onClick=\"setValues( '1' );document.location.href='cmc.php?id=$relation_id&refreshTopMenu=true&type=sales&search='\" class=\"formbutton\">";
the purpose is:
-to save the value
-go to other page
the $save_button1 can save the value, but it can't go to the other page
the $save_button2 can't save the value, but it does go to the other page
is there anyway to make the button can go both of the purpose?
thx