you can try the following.just remove the java script from your script.becoz that may create some trouble in old versions of browsers(i mean redirect script).
call the web.php3 from the html form.
here is an example,
test.htm
<form method="post" action="web.php3">
Name : <input type="text" name="fullname">
Email : <input type="text" name="email_address">
URLS :
<input type="radio" name="radio" value="http://shiju.dreamcenter.net" checked>
<input type="radio" name="radio" value="http://www.yahoo.com">
<input type="submit" name="submit" value="submit">
</form>
just use the following script for web.php3.don't put any html code before header() function.
web.php3
<?php
if($submit){
$userip = getenv("REMOTE_ADDR");
$con=mysql_connect (localhost, xxxxxx, xxxxxxx);
mysql_select_db (register1,$con);
mysql_query ("INSERT INTO email_info (fullname, email_address, userip)
VALUES ('$fullname', '$email_address', '$userip')
",$con);
header ("Location: $radio");
}else{
echo "Error !! contact administrator for detailsn";
exit;
}
?>
don't use "target=_blank" in html form(ie ,<form action="" method="" target="_blank"> )
that is why it is opening the page in another window.
hope this may help you to solve your problem...
------------------
SR -
shiju.dreamcenter.net
"The fear of the LORD is the beginning of knowledge..."
[This message has been edited by Shiju Rajan (edited May 25, 2000).]