Hi,
I am quite the rookie with PHP and really need some help. I have what was a .html page with a form for potential clients to fill out. The site is hosted at Yahoo! and requires that I use the following to process the form:
In order to discourage spam, I am turning this into a .php page and using a captcha that I found online. I have had to change the form tag to do this first:
The problem for me is that once the code determines the user entered the appropriate code, now I need to send the form off to yahoo to process - but I don't know how to. I am used to directing the form processing through the action= in the form tag. I don't know how to call it in the middle of this php code:
Any help is extremely appreciated!
I am quite the rookie with PHP and really need some help. I have what was a .html page with a form for potential clients to fill out. The site is hosted at Yahoo! and requires that I use the following to process the form:
Code:
<form method=post action="[URL unfurl="true"]http://us.1.p.geocities.yahoo.com/forms?login=mylogin@sbcglobal.net">[/URL]
In order to discourage spam, I am turning this into a .php page and using a captcha that I found online. I have had to change the form tag to do this first:
Code:
<form method="POST" action="<?php echo $SERVER['SCRIPT_URL']?>">
The problem for me is that once the code determines the user entered the appropriate code, now I need to send the form off to yahoo to process - but I don't know how to. I am used to directing the form processing through the action= in the form tag. I don't know how to call it in the middle of this php code:
Code:
<?php
if ($_POST['send']) {
$errors = array();
if ($_POST['captcha'] != $_SESSION['captchacode']) {
$errors[] = "You did not enter the letters shown in the image.";
}
if (!count($errors)) {
// IMPORTANT: If you don't call this the
// user will keep getting the SAME code!
captchaDone();
echo "<form action="$jewel" method="POST"< ";
$message = $_POST['message'];
//ACTION TO GO TO YAHOO FORM PROCESSING SHOULD GO HERE
?>
Any help is extremely appreciated!