Forum Moderators: mack
Dave.
In Matt's script you have a different set of variables that you can set. You define them like that in your form:
<input type="hidden" name="name_of_thevar">
The most used are: email, subject, recipient, required and redirect. And I think that they are case sensitive so don't use uppercase.
If in the form you had a filed called email, this will fill the email of the sender in the email sent. Sometimes the email software discart any mail without sender email so it's good practice to have an email filed.
The subject put the text you put in ther in the subject line of your email.
<input type="hidden" name="subject" value="enquiry from the website">
The recipient is the email address of the person that should recive the form. You can specify 2 recipient by separating the email by a coma (,)
<input type="hidden" name="recipient" value="myemail@mysite.com,mysecondemail@mysite.com">
The required field will stop the form to be sent if the field you specify as required are not filled in. It will display a error page asking to go back to the form. You separate each field name by a coma (,). These must be the same name and case as in the form itself.
<input type="hidden" name="required" value="formfield1,formfield2">
And finally the redirect bit wich is the url of the page you want your visitor to be redirected once he submitted the form. Usually you doi a ../ to get out of the cgi-bin folder and then type the name of the page. That is if Matt's script is located on the same site otherwise type the full URL.
<input type="hidden" name="redirect" value="../myredirectionpage.htm">
So le_gber, if I just add that code to my page it'll work? Or do I need to save this as a cgi file? I'm only interested in sending the information to one email, so that'll be fine. If I use PayPal as a payment option and add the "pay buttons" to my site, are there any security issues I need to take into consideration? Also, lukasz, Matt's scripts are targets for spammers? What if you obfuscate your email address within the form? Doesn't that eliminate most of the spam? Thanks guys! :)
Dave.
if I just add that code to my page it'll workyes
Or do I need to save this as a cgi fileno simple html is sufficient
are there any security issues I need to take into considerationnot sure about that is there a transfer of personal info? if yes - there is a security issue.
Also, lukasz, Matt's scripts are targets for spammers? What if you obfuscate your email address within the form? Doesn't that eliminate most of the spamI think the way spammers use Matt's script is as a relay to their spammy emails. What's good with the NMS script is that you specify the domain authorised to receive the email as well as the number of authorised recipient addresses.
Leo