943,769 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jul 14th, 2008
0

Need Help with purchase order form

Expand Post »
I hope I am in the right place. My Purchase Order Form has worked well for me until recently a spammer has started sending me stuff. I would like to make some changes to make it harder for them to use.

I created the form with form maker pro. Part of a service from web host. The form can be found at
http://billygorilly.com/forms/purchase-order.html

here are my questions

1. How can I add a capcha to my form in form maker pro? or by changing the code in dreamweaver.

2. How do I make it so email and confirm email have to be the same to submit form.

3. What setting or code should a phone number be on to keep spammers from inputing 1234

4. We only accept PO's from the United States, is there a way to have the State field only accept US entries?

5. Is there a way to stop spammers from adding links into the comment section?

I know this is a lot of questions but any help would be appreciated

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
moviemedic is offline Offline
7 posts
since May 2008
Jul 14th, 2008
0

Re: Need Help with purchase order form

Maybe this info will help someone help me. This is the kind of spam I just started getting. Don't know if this can be fixed or if I am just hopeful.

Billy Gorilly and the Candy Appletree Family: 4
Billy Gorilly:Happy Birthday Gertie: 19
First Name: girls
Last Name: girls
School/Library Name: girls
Address 1: goDHBJOCxXQwAJ
Address 2: 2
City: wJMgPzwkB
State: dBxiMiGL
Postal Code: fhTIbdFzAC
Phone: OzcNvXGFWIDOCuQLnjo
Email Address (No Free Email Accounts):
Confirm Email Address: girls at 247 ihost dot com (I modified email)
Purchase Order Number: sLZXeDATsCsqBp
I would like to recieve your Billy Gorilly Family Newsletter: Yes
Comments: SAE0gA ****ing girls movie

Click to Expand / Collapse  Quote originally posted by moviemedic ...
I hope I am in the right place. My Purchase Order Form has worked well for me until recently a spammer has started sending me stuff. I would like to make some changes to make it harder for them to use.

I created the form with form maker pro. Part of a service from web host. The form can be found at
http://billygorilly.com/forms/purchase-order.html

here are my questions

1. How can I add a capcha to my form in form maker pro? or by changing the code in dreamweaver.

2. How do I make it so email and confirm email have to be the same to submit form.

3. What setting or code should a phone number be on to keep spammers from inputing 1234

4. We only accept PO's from the United States, is there a way to have the State field only accept US entries?

5. Is there a way to stop spammers from adding links into the comment section?

I know this is a lot of questions but any help would be appreciated

Thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
moviemedic is offline Offline
7 posts
since May 2008
Jul 15th, 2008
0

Re: Need Help with purchase order form

Hi,

the best solution to provide spamers is including a tricky game, like a mathematical opeartion on two numbers.

provide them two random numbers and a mathematical operation and let them provide you solution.

then on next page you can first check if you have got the correct answer, then submit the information else its a spammer.

Hope this information will help you.
Reputation Points: 28
Solved Threads: 19
Junior Poster
vicky_rawat is offline Offline
137 posts
since Jun 2008
Jul 15th, 2008
0

Re: Need Help with purchase order form

This is the code for validating your emailid is same as confirm mail id:

javascript Syntax (Toggle Plain Text)
  1. if (d.email.value!=dc.value) { alert("Your email and Confirm emaildoesn't match.."); d.cemail.value=""; d.cemail.focus(); return false; }


isNan function to be used to validate your phone number be having only numbers....
Last edited by Shanti C; Jul 15th, 2008 at 6:57 am.
Reputation Points: 137
Solved Threads: 162
Posting Virtuoso
Shanti C is offline Offline
1,641 posts
since Jul 2008
Jul 15th, 2008
0

Re: Need Help with purchase order form

Thanks Vicki,
I will research and figure out how to add a mathematical operation as you suggested. At this point I have no idea how to do it but it will ba a good challenge. I am not sure what you mean by checking it on the next page.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
moviemedic is offline Offline
7 posts
since May 2008
Jul 15th, 2008
0

Re: Need Help with purchase order form

Shanti,
Thanks for your reply. I will try your code. Every piece of information helps. Lets hope I put the code in the right place.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
moviemedic is offline Offline
7 posts
since May 2008
Jul 16th, 2008
0

Re: Need Help with purchase order form

Hi,

Like you gave a question
2+2 = ?

user gave answer as 4 then
in the page where you are posting the information, you can check if the answer user gave is correct or not.

If correct then put the information in batabase, else leave it as it is a spammer.
Reputation Points: 28
Solved Threads: 19
Junior Poster
vicky_rawat is offline Offline
137 posts
since Jun 2008
Jul 16th, 2008
0

Re: Need Help with purchase order form

Hi vicky,
Thanks for the clarification on the math problems. I have been researching some code possibilities and it seems like more than I can handle at this time. I need to get much better at this coding thing first. I won't give up it just may take me some time.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
moviemedic is offline Offline
7 posts
since May 2008
Jul 17th, 2008
0

Re: Need Help with purchase order form

Shanti,
I tried the code you shared with me for email and I could not get it to work. Not sure why. I am going to try some other formulation of the code and see what happens. I will not be deterred. I shall find the answers.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
moviemedic is offline Offline
7 posts
since May 2008
Jul 17th, 2008
0

Re: Need Help with purchase order form

Click to Expand / Collapse  Quote originally posted by moviemedic ...
Shanti,
I tried the code you shared with me for email and I could not get it to work. Not sure why. I am going to try some other formulation of the code and see what happens. I will not be deterred. I shall find the answers.
Hey sorry...Some mistake is there in my code.
check this code will work perfectly...
javascript Syntax (Toggle Plain Text)
  1. 1.
  2. if (d.email.value!=d.cemail.value) { alert("Your email and Confirm emaildoesn't match.."); d.cemail.value=""; d.cemail.focus(); return false; }


here email is your email textfield and cemail is your confirm email textfield...
place this code in your validations....
Reputation Points: 137
Solved Threads: 162
Posting Virtuoso
Shanti C is offline Offline
1,641 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Firefox message bar with JS
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: html entity decode





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC