Jump to content

Parse error: parse error, unexpected $end in - Email Form


ootweb

Recommended Posts

hope someone can help iam getting a Parse error: parse error, unexpected $end in

 

<?php
require 'captcha.php';
$errors = array();
?>
<?php
if ($_POST['send']) {
if ($_POST['captcha'] != $_SESSION['captchacode']) {
	$errors[] = "You did not enter the letters shown in the image.";
} 
if (!sizeof($errors)) {
	// IMPORTANT: If you don't call this the 
	// user will keep getting the SAME code!
	captchaDone();
?>
<html>
<head>
<title>Contact Us</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="34%" border="0">
  <tr>
    <td height="657"> 
      <form action="/cgi/formmail" method ="POST">
        <p><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
          <input type=hidden name="recipient" value="mail@mail.com">
          <input type=hidden name="subject" value="Login Request:,REMOTE_ADDR">
          <input type=hidden name="required" value="title,names,surname,company,email,phone">
          <input type=hidden name="sort" value="order:title,names,surname,company,email,phone">
          <input type=hidden name="redirect" value="thankyou.html">
          </font></p>
        <p align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><strong>Title 
          * 
          <input type=text name="title">
          </strong></font></p>
        <p align="right"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          Given Name(s) * 
          <input type=text name="names">
          </font></strong></p>
        <p align="right"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          Surname * 
          <input type=text name="surname">
          </font></strong></p>
        <p align="right"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          Company * 
          <input type=text name="company">
          </font></strong></p>
        <p align="right"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          Email Address * 
          <input type=text name="email">
          </font></strong></p>
        <p align="right"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Phone 
          * 
          <input type=text name="phone">
          </font></strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          </font></p>
        <p align="left"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          How did you hear about this demo? 
          <select name="hearabout" id="hearabout">
            <option value="Website">Website</option>
            <option value="Other">Other</option>
          </select>
          </font></p>
        <p align="left"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          <input type="checkbox" name="requirelogin" value="checkbox">
          I require a login</font></p>      
        <p align="left"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          <input type="checkbox" name="contact" value="checkbox">
          we may contact you to enquire about your demonstration experience </font></p>
        <p align="center"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><strong>Note: 
          A valid email address must be provided in order to recieve your login</strong> 
          </font></p>
        <p align="left"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Type 
          verification image: </font></p>
        <p align="left"><font size="2" face="Arial, Helvetica, sans-serif"><img style="vertical-align: middle" src="<?php echo captchaImgUrl()?>">  <br>
          <input name="captcha" size="8"/>
          <a href="<?php echo captchaWavUrl()?>">Listen To This</a> </font></p>
        <p align="left"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Message:</font></p>
        <p align="left"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
          <textarea name="message"></textarea>
          </font></p>
        <p align="left"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
          <input type="submit" name="Submit" value="send">
          </font></p>
      </form>
     
    </td>
  </tr>
</table>
</body>
</html>code]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.