Page 1 of 1

php form

Posted: Thu Apr 16, 2009 3:12 pm
by jonnyroboto
Good Afternoon,

I am building a website and am trying to use a php form to establish contacts from my site. I am using a server that allows php and cgi scripts, and have them in the appropriate directory (my site's cgi dir). When I try testing the form I get the erroro message: Parse error: parse error in /www/cgi/form.php on line 2.

The code I'm using is :

Code: Select all

 
<?php
  <form method="post" action="sendmail.php">
  Email: <input name="email" type="text" /><br />
  Message:<br />
  <textarea name="message" rows="15" cols="40">
  </textarea><br />
<?php
  require_once('recaptchalib.php');
  $publickey = "6LfD-wUAAAAAAMBe5rzVuYlxDZR8bC0NS_8CFtGO"; // you got this from the signup page
  echo recaptcha_get_html($publickey);
?>
  <br /><input type="submit" />
  </form>
?>
 


Does anyone see a problem with this code?

Thank you,
Jonny