Jump to content
neti_treves

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?)

Thanks!

 

Share this post


Link to post
Share on other sites

Take a look at my use of Ask about a Product here:

https://dirtybutter.com/plushcatalog/dandee-collectors-choice-white-lamb-pink-jesus-loves-me.html

Share this post


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.

Guest
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...