|
| |
|
|
jeffmetcalf
Posts: 186 Joined: 3/16/2002 From: Status: offline
|
contact form as an include page - 2/7/2008 10:29:27
Is it possible to use an include file for the a form? The boss wants multiple contact forms....basically he wants a contact form for each section of the site, whether is be for service, support, or sales...and he wants contact forms for sections within those sections...so I'm looking at 15-20 contact forms when I'm done. I'd prefer one contact form, of course. I have code that runs that puts the input of one contact form directly into our CRM software. I was wondering if anyone had used a form as an include file and feedback as such...and if there was a way to capture what page the user was on when they clicked the submit button. As always, thanks in advance
|
|
|
|
coreybryant
Posts: 2479 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: contact form as an include page - 2/7/2008 12:51:02
Are you going to be relying on Frontpage or are you using a server side language (ASP, PHP, .NET) to accomplish this? If you are using ASP, you can include it on any / all pages as you wish. And then you can use a server side language to pick up the page name, etc
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | Expression Web Blog
|
|
|
|
jeffmetcalf
Posts: 186 Joined: 3/16/2002 From: Status: offline
|
RE: contact form as an include page - 2/7/2008 15:39:04
I can go either way. I use some code called sendmail.asp on some other sites. Thoughts on how to pick up the page name? I'm not really an asp coder. But I can hack some stuffage, lol.
|
|
|
|
coreybryant
Posts: 2479 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: contact form as an include page - 2/7/2008 16:22:34
To include the contact form, you can just use an ASP include. And then use a virtual or absolute hyperlink to post the form to - especially if you have multiple folders. And of course to include the contact form, you would use something like <!--#INCLUDE FILE="includes/contactform.asp" --> Of course changing it to whatever your page name is. The sendmail.asp could be using JMail, CDOSYS, ASPMail, or ASPEmail unfortunately. A lot of things to consider - especially if the site is already up, in the Search Engines, etc like do you have to change the page names if you are not already using ASP
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | Expression Web Blog
|
|
|
|
jeffmetcalf
Posts: 186 Joined: 3/16/2002 From: Status: offline
|
RE: contact form as an include page - 2/8/2008 9:49:46
Yep, I know all that. I just don't know how to capture the page name or title and populate a hidden form field with the page they came from.
|
|
|
|
coreybryant
Posts: 2479 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: contact form as an include page - 2/8/2008 13:08:11
I am taking a guess that you need ASP code? If so, you can use the URL and path_translated server variables. Something like <input type="hidden" name="URL" value="<%Response.Write(Request.ServerVariables("url"))%>" />
<input type="hidden" name="path_translated" value="<%Response.Write(Request.ServerVariables("path_translated"))%>" />The URL will give you the page name, for example if the form is on www.example.com/contact.asp, then you can get /contact.asp in the e-mail. The path_translated will give you D:\domains\example.com\wwwroot\contact.asp
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | Expression Web Blog
|
|
|
|
jeffmetcalf
Posts: 186 Joined: 3/16/2002 From: Status: offline
|
RE: contact form as an include page - 2/8/2008 21:56:33
cool...I'll give it a shot.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|