lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO


Register


Reply
 
Thread Tools
  #11  
Old 7th Feb 2008, 13:23
Member Group
 
YEAH!
just added the captcha to my form and is validating the entry SO COOL! i feel like a kid in a candy shop.
Thanks everyone!!!!!!!!!
  #12  
Old 8th Feb 2008, 03:26
Member Group
 
Hello again!
Ok so last night i may have got alittle bit over excited when i said i have a captcha (working).
Im having a little problem with the validation markup. im using php5 and i get a parse error telling me unexpected T_UNSET blah blah.....the usual for me.

this is my code:
<?php
session_start();
if(($_SESSION['security_code'] == $_POST['security_code'])
&& (!empty($_SESSION['security_code'])) )
{
$firstname = $_REQUEST['firstname'];
$lastname = $_REQUEST['lastname'];
$city = $_REQUEST['city'];
$pictue = $_REQUEST['picture'];
$email =$_REQUEST['email'];

mail( "some email","Feedback Form Results",
$message, "From: $email");

header("location:../artist_member/thank_you1.html")
unset ($_SESSION['security_code']);
}
else
{
header ("location:../artist_member/sorry_error.html")
}
?>

am i using the wrong php syntax?

really appreciate the help.

Ben
Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.