Using this below works fine and post to my site
<input type="submit" name="friendcommentpost" value="Post Comment">
But using this below goes to my php script I am sumbitting to but stops there and doesnt post to it
<input type="submit" name="friendcommentpost" value="Post Comment" onclick="this.disabled=true;document.form1.submit()">
Here is the code from the script it is posting to
if($_REQUEST['friendcommentpost']!=''){
if(FilterHTML($comment))
{
$comment=FilterHTML($comment);
}
if($comment=='')
{
$msg = "Please Enter the Comment";
$_SESSION['sess_msg'] = $msg;
header("location: index.php?action=friendcomment&type=member&userid=$friendid&unid=$unid");
exit;
}
//echo $comment1;
//exit;
$prod='2';
$flag=0;
$privacy="select privacy from friend_acc_setting where user_id='$friendid' and privacy LIKE '%$prod%'";
$privacy1=executequery($privacy);
$row_privacy=mysql_fetch_array($privacy1);
$numrow=mysql_num_rows($privacy1);
if($numrow > 0)
{
$flag=1;
}
if($flag==1)
{
$sql= "INSERT INTO friend_friend_comment (userid, friendid, postdate, status, body,stausapprovrd) VALUES ('$info[auto_id]', '$friendid', now(), 'Active', '$comment','No')";
}
else
{
$sql= "INSERT INTO friend_friend_comment (userid, friendid, postdate, status, body) VALUES ('$info[auto_id]', '$friendid', now(), 'Active', '$comment')";
}
executequery($sql);
$msg = "Your Comment has been posted";
$_SESSION['sess_msg'] = $msg;
include "mail_friendcomment.php";
header("location: index.php?action=memberprofile&type=common&userid=$friendid&unid=$unid");
exit;
}