• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Java Scripts help please !!

n5gooner

Super poster
Joined
Jul 7, 2005
Messages
3,831
Likes received
202
Thanks received
162
Hi All,

I've a web site which has a form on it. The user fills in the form, prints it of and send it to us with their items. However I'd like to receive an email when a user clicks on the print form link so that I know they have filled in the form and I can expect their order.

The forms link is below

www.easyslidescanning.co.uk\order.html

Any help would be apreciated !!! I've tried adding a "post" and "mailto" but as I don't know javascript its not working !!!
 
Have you condidered doing this server side? If you are using .net you could just use the System.Net.Mail classes to handle this for you in the button's on click event handler.
 
Lots of form processors here;

Linky

Why not go for a simple ecommerce solution, there are many ways to do this.
 
If you don't actually need the form to submit somewhere then you can set the action attribute to "mailto:whoever@wherever.com" and the contents of the form will be emailed to that address. If you actually need the form to be processed then you'll need to do this server-side. There's not actually any javascript involved in this.
 
surely it must be as simple as adding a link - is that not the case, don't mind the solution as long as its free and does not mean complete re-engineering of the form.
 
surely it must be as simple as adding a link - is that not the case, don't mind the solution as long as its free and does not mean complete re-engineering of the form.

A mailto link won't just send an email silently in the background though. It opens your email client and creates a new email which you then send yourself. It's not a very slick solution to what you want to do.
 
A mailto link won't just send an email silently in the background though. It opens your email client and creates a new email which you then send yourself. It's not a very slick solution to what you want to do.

mmm....

ok - what's the best way to do this, silently, so it does not open the clients email.

How about storing the forms on the web server ???

I'd be willing to pay someone to help with this, it can only be a few minutes work if they know what they are doing......just I do need to know this information....
 
I'd be willing to pay someone to help with this, it can only be a few minutes work if they know what they are doing......just I do need to know this information....

If you were just to hook up the form to a generic form processor (something like FormMail comes to mind but I know it's far from being the best choice these days), it would be only a couple of minutes work. The resulting email, however, wouldn't make an awful lot of sense to the business owner as it would just spit out the name and value of each field in the form in sequence.

What you ideally need is a bespoke script in something like ASP or PHP (depending upon your host) to read the fields from the form and write them into an email in a nicely formatted manner that roughly corresponds to the layout of the form and therefore makes sense to the reader. This will be 2-3 hours work but will pay dividends in the long term.
 
am I missing the point here, can't you send the form via sendmail.php ?

This would be very simple and easy to do.
 
is that an offer????


If you were just to hook up the form to a generic form processor (something like FormMail comes to mind but I know it's far from being the best choice these days), it would be only a couple of minutes work. The resulting email, however, wouldn't make an awful lot of sense to the business owner as it would just spit out the name and value of each field in the form in sequence.

What you ideally need is a bespoke script in something like ASP or PHP (depending upon your host) to read the fields from the form and write them into an email in a nicely formatted manner that roughly corresponds to the layout of the form and therefore makes sense to the reader. This will be 2-3 hours work but will pay dividends in the long term.
 

Advertisers

Back
Top