0

Hello:

I am currently developing DomainPhenom dot com, anyways, when you click the inquire button on the websites for sale page I want it to redirect the user to the contact form but fill in the "domain/website" field automatically on the contact form depending on what site or domain they are inquiring about. How would this be done?

Thanks!

3
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by kidslimmer
0

You could fill in the text field with JavaScript only if it was hard-coded somewhere what to fill it in as. If you want to pass external variables into the page, you would need to use a server-side language such as PHP.

0

Yeah for now I am just going to have everything hard coded so I can have a specific variable attached to each domain or website link. How would I set that up? Thanks again.

0
<a href="contact-us.html" onclick="var w=window.open(this.href,'domain','chrome'); formfill(w.document.getElementById('domain'), 'domain.com'); return false;">domain.com</a>

Alright I got it but it opens in a new window, I just want it to go to the page, how can I edit this to work? Thanks!

0

Try using javascript to set a cookie with the domain information on the first page. Then, on the page with the form, you can read it out and use the domain info from it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.