Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookir Tracking & Forms

Status
Not open for further replies.
Jan 21, 2005
46
US
Hi, our company has an official website with contact us page which has a form to inquire about the product (we don't have online transaction available for other specific reasons.) Our company has 50 dealers to sell our prouducts, and they have their own websites designated to our products. They conduct their own marketing efforts for their website.

What we want to implement is this:
When users visit "their" website and press a link to "Product" page, they will be directed to our main site's product page. They could surf our website for more detailed information about the product. This is easy, I know. The question is the following. After they surf our main site and decided to contact us by sending an inquiry form, their information should be sent to the original dealer. This is basically what we want, but adding to this, it would be better if we can track the information they send using a database, but this might not be needed immediately.

What I can think of now is that I could use a cookie and send information to a specific dealer's site. But could you please suggest me a better way to handle this requirement? Please let me know how you would rank the difficuty of this job also. Thanks in advance.
 
how about this

ex.

[dealer site's link]

<a href="yourcompany.asp?d=345">Your Company</a>

the 345 stays for that dealers companyid (what ever you come up with)

then on the yourcompany homepage do assign that id to a session then place that session in a hidden field on the contact us form

then just redirect to dealer by matching that id against a database
 
you wouldn't really need to put it in a hidden field if it's in a session var though.
 
Thanks for the comments. Well, I should have mentioned that our main site has just HTML pages without any server side programming or database. If possible, I would like to do the task without server side programming. Is there a way to do it with a javascript?
 
We have a forum for javascript questions: forum216
 
you do need to put a hidden field if submitting into a database (to keep track of whos used the form, and where they came from)
 
well...not that this is still relevant as the submitter has been redirected to the javascript forum, but i don't see why you'd need a hidden field to submit it to the database.
 
sorry your right - its just one of those days

you could just "update tbname set whatever='"&session("whatever")&"'
 
Thanks for your comments, but I have redirected my question to Javascrip forum becauese if it's possible with javascrip, it would be far easier to implement in current situation where all of our pages are HTML-based. If I find that javascript can't complete this job, I will follow up on this thread. Thanks alot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top