Results 1 to 2 of 2

Thread: Passing a variable

  1. #1
    Join Date
    Mar 2009

    Default Passing a variable


    I have gone brain dead.

    I'm trying to replace the existing form software to get rid of all the spam.

    The existing form script passes a variable through to the email.

    Each link on the site that points to the contact page is like this:

    Inside the email that is sent is the "somepagename" variable. This is to see where people come from on the site, to see which pages generate the query.

    How can I do that with this script?


  2. #2
    Join Date
    Dec 2003

    Default Re: Passing a variable


    Your PHP script called "contactus.php" must already do something with that URL parameter.

    Without looking at the script, I cannot tell.

    The simplest thing to do, to make sure it gets through on your form, is to set the subject field value.

    Something like this should work well for you:
    HTML Code:
    <input type="hidden" name="subject" value="Contact via <?php echo $_GET["id"]; ?>" />
    BTW, this is really a PHP question rather than something about Tectite FormMail.

    Anyway, I hope that helps.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Use number as variable in template
    By piemanek in forum Features Questions
    Replies: 1
    Last Post: 15-Dec-2006, 08:01 PM
  2. Use number as variable in template
    By piemanek in forum Community Support
    Replies: 0
    Last Post: 15-Dec-2006, 01:42 PM
  3. $variable value missing
    By amheh in forum Community Support
    Replies: 1
    Last Post: 16-Sep-2006, 10:22 PM
  4. Passing information onto an HTML file after submitting
    By bdc1285 in forum Community Support
    Replies: 1
    Last Post: 14-Feb-2006, 10:08 PM
  5. Passing args to new formmail form/page
    By labbs in forum FormMail Subscription Support
    Replies: 1
    Last Post: 18-Apr-2005, 07:24 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts