Current location: Hot Scripts Forums » Programming Languages » Perl » form2email.pl - Include source page.

form2email.pl - Include source page.

Reply
  #1 (permalink)  
Old 10-28-09, 06:33 AM
quamby quamby is offline
New Member
 
Join Date: Oct 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
form2email.pl - Include source page.

Hi,

My first post here!

Maybe somebody much more educated can Help me?

I use "form2email.pl" type form on some of my other websites successfully.

I am developing a new website that has many pages that lead to a common form on a html page that contains "form2email.pl" type form.

What I would like to do is use this common html page that contains "form2email.pl" type form that displays the page that was visited previously .

And also when I receive the customer email I would like to know which page was visited before the customer filled out the form?

Hope this make sense.........

Any help would be much appreciated.

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-28-09, 08:10 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 2,838
Thanks: 13
Thanked 11 Times in 10 Posts
Quote:
Originally Posted by quamby View Post
What I would like to do is use this common html page that contains "form2email.pl" type form that displays the page that was visited previously .

And also when I receive the customer email I would like to know which page was visited before the customer filled out the form?
You could create a copy of the form that's used in "form2email.pl" and include it in each page, and you could place a hidden variable in each page (in the form) that would indicate what page they used to send the email from.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data (scroll down)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-28-09, 04:22 PM
quamby quamby is offline
New Member
 
Join Date: Oct 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks End User,

Your solution works fine, in fact I have used this method before.

I was trying to find a way around copying the same form (with an identifying descriptive hidden variable) 65 times.
Maybe this is the only way to do it.

Thanks again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 10-28-09, 05:13 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 2,838
Thanks: 13
Thanked 11 Times in 10 Posts
Quote:
Originally Posted by quamby View Post
I was trying to find a way around copying the same form (with an identifying descriptive hidden variable) 65 times.
No, no- what I meant is make a small include file that would contain only the form itself, and use a server-side include (or some other method) to pull it into the page. Then use an environment variable to fill a hidden form field to indicate what page it was loaded into.

My apologies if I wasn't clear before.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data (scroll down)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to End User For This Useful Post:
quamby (10-28-09)
  #5 (permalink)  
Old 10-28-09, 06:00 PM
quamby quamby is offline
New Member
 
Join Date: Oct 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks for the super quick reply End User,

And thanks for your solution - I will give it a try.

Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing login page if not logged in eprots Script Requests 1 12-23-07 05:58 PM
To use include or embed HTML into my contact.php page dmaldon01 PHP 1 02-17-06 04:40 PM
Include external page amitroy5 Perl 1 01-28-06 11:19 AM
need help creating an update & confirm page mikewooten PHP 1 11-08-04 05:28 PM
"10 most requested pages" script to include in page avx Script Requests 5 08-06-03 04:26 AM


All times are GMT -5. The time now is 07:06 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.