php form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonnyroboto
Forum Newbie
Posts: 1
Joined: Thu Apr 16, 2009 2:52 pm

php form

Post 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
Post Reply