Jump to content

Php in template

Recommended Posts

Hi there,
I am trying to make possible for users to order out of stock items. Basically, I am substituting the "out of stock" warning with a link to the contact form.

I would like to have a pre-filled contact form with the book title and author. I'm okay with using a simple GET method (doable through a link)

However, when I try to include a basic "<?php echo $_GET['pre-message']?>" in the textarea it stamps the code as it is.

Is there a way to execute it?

If not, how can I do that? (For instance, is there a way to set the $MESSAGE.enquiry variable?)



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...