Hi All
Im trying to make a form so customers can order by telephone if they dont want to order online.
The idea is they click a link ("Order this product by telephone") which takes them to a page with a simple form where they can enter their name and phone number. On this same form I would like a field which is automatically filled out containg the address on the previous page they were on (ie the page where they clicked "order this product by telephone")
An alternative solution would be for the customer to fill out their name and phone number and send the form with the title of the email (when it arrives in my inbox) containing the URL of the page where they clicked "Order this product by telephone".
This is the closest code Ive found, ie it spits out the address of the previous page but its in Outlook and I want it to do it in a simple form
[CODE]<SCRIPT language="javascript">
function mailpage()
{
mail_str = "mailto:?subject= Fill in your subject line here";
mail_str += "&body= Put a message in the email body here";
mail_str += " " + parent.location.href;
location.href = mail_str;
}
</SCRIPT>
<A HREF = "javascript:mailpage()">Email this page to a friend</A></p>[CODE]
its based on a tell a friend link.
I cant put together code to do what I want no matter what I try. If you can help it would be really appreciated.



Reply With Quote

Bookmarks