Thread: Quick PHP Help
View Single Post
02-07-2005, 02:12 AM
#10
CEStudios is offline CEStudios
Status: Junior Member
Join date: Jan 2005
Location:
Expertise:
Software:
 
Posts: 78
iTrader: 0 / 0%
 

CEStudios is on a distinguished road

  Old

Ok having problems, my code on the html part is
<html><form action="http://www.cuttingedgestudios.com/newsletter.php" method="post">
<span class="pagedef">Sign up here for the Bound To Change newsletter. This will let you stay up to
date on the current happenings in the Bound To Change World! So stay connected, sign up.</span>
<input size="15" value="E-mail Address" name="address" />
<input type="submit" value="Join" />
</form></html>
and my code in the php file is
<php><?php

$address = $_POST["address"];

if(isset($_POST['submit'])) {
mail(cnkrsdyj@cuttingedgestudios.com, $address);
}

?></php>
ANd when i tested it out, it says Parse error: parse error in /var/www/html/newsletter.php on line 6 ? Please help.