This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Full URL info along with form submission


  1. gothmane
    Member

    Hi,

    How can I include a variable that shows the full url of the page from where the user submitted my form? someone suggested $_server[php_self] however I have no idea where and how to include this in the existing machform code.

    Any help is greatly appreciated :)

    Posted 15 years ago #
  2. redityo

    Hi,

    You only want to show full url in your form ? if it's so try to edit "view-functions.php" and go to around line 1842, you will see this :

    {$form_desc_div}

    try to put above that code

    http ://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}

    MachForm Support

    Posted 15 years ago #
  3. gothmane
    Member

    Thanks for your help. I put this code above {$form_desc_div}, however, this is not working. I am embeding my form code in an html page and I am embeding this code in more than 60 pages(news article pages), when the visitor is in 40th article, if he submits this form, I would like to receive an email with the details submitted along with the url of the page the visitor submits the form, so that I can know for which article page he has submitted his comments. I will be grateful if you help me with this. Mr.Yuniar, can you please help me with this issue?

    Posted 15 years ago #
  4. yuniar

    gothmane, I got your mail. Lets continue there.


    MachForm Founder

    Posted 15 years ago #
  5. mjg234
    Member

    yuniar, assuming you have resolved this with gothmane offline, could you please update this post with the final resolution?

    This is something very similar to what I want to do: Add a "Forward to Friend" (a.k.a. "Send to Friend") form, throughout an entire website, so visitors/members can send the url to a friend.

    Thank you for this great product.

    Posted 15 years ago #
  6. yuniar

    Sorry, we don't have final resolution for this case yet.


    MachForm Founder

    Posted 15 years ago #

RSS feed for this topic

Reply