Thanks, ive done a little more and i misunderstood. I figure that now I
have to call the inbuilt contact form module in lenya, but im not sure
how to do that within my code. Bear in mind im very new to lenya so if
you could keep it simple lol
im assuming that lenya.usecase={usecaseName} is appended to a url
On Tue, 2011-07-19 at 10:52 -0500, Richard Frovarp wrote:
> On 07/19/2011 10:41 AM, Nick Holland wrote:
> > how do i intergrate a serverside php scripting to make a simple contact
> > form in 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 if i try and call it, I get an error.
> >
> > I simply do not understand why this script which works every other time
> > ive used it fails on lenya
> >
>
> Lenya doesn't have a PHP engine in it. It will not run PHP code. You
> could look at something like Project Zero and integrate PHP into Lenya.
> However, you're better of doing something else.
>
> Or are you using this as a post action from a form in Lenya and sending
> it to this PHP code that is hosted on a system that can run PHP?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]