Re: anothing frustrating error

Vik Tara <[email protected]> Tue, 19 Jul 2011 16:30:02 +0100
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
What error do you get?

That looks like php code to me - but lenya will expect xhtml.

On 07/19/2011 04:23 PM, Nick Holland wrote:
> this may seem easy for all you developers but i am having great
> difficulty putting a simple contact form in my web pages through lenya
>
> <?php
> 	//declare our assets 
> 	$name = stripcslashes($_POST['name']);
> 	$emailAddr = stripcslashes($_POST['email']);
> 	$comment = stripcslashes($_POST['message']);
> 	$subject = stripcslashes($_POST['subject']);	
> 	$contactMessage =  
> 		"Message:
> 		$comment 
>
> 		Name: $name
> 		E-mail: $emailAddr
>
> 		Sending IP:$_SERVER[REMOTE_ADDR]
> 		Sending Script: $_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]";
> 		
> 		//send the email 
> 		mail('[email protected]', $subject, $contactMessage);
> 		echo('success'); //return success callback
> ?>
>
>
> this is the code im using, but lenya doesnt like it
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>