PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 10th, 2013, 10:11 AM
almedia almedia is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2013
Posts: 1 almedia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 14 sec
Reputation Power: 0
Forms: POST & GET - Getting Referrer Page URL & Keywords from web form submittals (formmailer.php)

We need some help with coding formmailer.php

What we want to do: Capture Referrer page URL (page the form was submitted from) and Keywords AND have them emailed to us along with the other web form input data.

Question 1: What code do we use in the formmailer.php script file to get the referrer page url and keywords and have them emailed to us?

Question 2: We have seen forum suggestions such as: $ref = getenv("HTTP_REFERER") and $ref = $_SERVER['HTTP_REFERER']; and some have strongly suggested we should use "(isset(" for example $ref = (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';
and others <input type="hidden" value="<?php echo $_SERVER['HTTP_REFERER'] ?>" name="referer" />

Which one should we use, where do we insert the code, and what exactly is ALL THE CODE WE NEED to insert in the formmailer.php script file to accomplish what we want.

NOTE: We are not using <form...> </form> on the web page, we are using a php include to call the formmailer.php script file from php web pages so we don't see how we could use <input type="hidden" value=".... within in the formmailer script. (If we can use hidden field types in formmailer.php, we'd love to know how)

Question 3: Where exactly in the formmailer.php script would we insert the code?

Question 4: Would we need to make any other modifications to the formmailer.php script file to make this work?

Other Info:

We are not using <form> </form> on the web page.

We do not store the webform input data in a Mysql Database, an email notification is enough. We just want know the keywords that were used to find our website and the page the webform was submitted from and have that data e-mailed to us along with the rest of the webform text input data.

We are using a formmailer.php script file from dagondesign - PHP Form Mailer Script v4.0

We use a php include on our web pages for the formmailer.php file.

In the formmailer.php file we use $form_structure = array( with "openfieldset|fmset" "closefieldset|fmset", etc. for the webform input fields.

The SHOW FORM area uses:
$t_out .= '<form method="post" action="' . basename($_SERVER["PHP_SELF"]) . '" enctype="multipart/form-data">';

Reply With Quote
  #2  
Old May 13th, 2013, 07:43 PM
Ronal2dduff Ronal2dduff is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2013
Posts: 8 Ronal2dduff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 37 sec
Reputation Power: 0
We use a php include on our web pages for the formmailer.php file.



Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Forms: POST & GET - Getting Referrer Page URL & Keywords from web form submittals (formmailer.php)


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap