Hello,
Our pages on our site have a form on them which when submitted go to "content/view/261/1/". The form has 2 fields and both are autofilled in for the user. The page "content/view/261/1/" is running a php script that if the first field is not blank, goes to another website. What we are finding is that sometimes when you submit the form we go to the external website (what is supposed to happen) but many times we just go to this page: content/view/261/1/ and get the form showing up again, which happens when the first field is not filled in.
On our pages we have:
<form action="content/view/261/1/" method="post">
Enter e-mail:
<input name="email" type="text" style="width:100px; margin:0" value="demo" />
<br />
Enter password:
<input name="Password" type="password" style="width:100px; margin:0" value="choice" />
<input type="hidden" name="TargetReferral" value="<?php echo $row[0]->cb_referralvaultid ?>" />
<input type="hidden" name="VendorId" value="1" />
<input type="hidden" name="ProfileId" value="<?php echo $row[0]->cb_profileid ?>" />
<br />
<input type="submit" name="Submit" value="Send Referral" style="width:100px; margin:0" />
<br />
</form>
and on "content/view/261/1/" page we have:
$email = strval( mosGetParam( $_REQUEST, 'email', '' ) );
$errorstr = '';
if ( $email ) {
header ('Location: http://xxx.net/HCReferralSender2.aspx?SourceID=12&TargetID=12&VendorID=1&ProfilePageID=250');
}
<form action="content/view/261/1/" method="post">
Enter your e-mail address:
<input type="text" name="email" style="width:100px; margin:0" /><br />
Enter your password:
<input type="password" name="Password" style="width:100px; margin:0" />
<input type="hidden" name="TargetReferral" value="<?php echo $row[0]->cb_referralvaultid ?>" />
<input type="hidden" name="VendorId" value="1" />
<input type="hidden" name="ProfileId" value="<?php echo $row[0]->cb_profileid ?>" />
<br />
<input type="submit" name="Submit" value="Send Referral" style="width:100px; margin:0" /><br />
</form>
I have tried entering under URL parts that may not be cached:
id=261
/261/1
I have looked in the Repository but can not find page: content/view/261/1/
Any ideas of what else to try to get this form to function correctly?
Thanks.