The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> HTML and Perl CGI, HTML and Perl CGI
citabriabob
post Jul 27 2020, 04:32 PM
Post #1


Newbie
*

Group: Members
Posts: 11
Joined: 27-July 20
Member No.: 27,457



I have html <form method="post" action="cgi-bin/order.cgi"> where inputs are <input autocomplete="off" type="text" size="1" maxlength="2" name="MI-527" value="">.
cgi script is perl. Random orders come in with unspecified inputs and all are very high quantities. I wrote this off as a chrome problem, but need to fix regardless. Thanks,
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
citabriabob
post Jul 28 2020, 06:48 PM
Post #2


Newbie
*

Group: Members
Posts: 11
Joined: 27-July 20
Member No.: 27,457



Those items were NOT ordered; they appeared totally out of the blue.

If you have a mix of browsers, I welcome you to place orders. Use 4111 1111 1111 1111 as credit card. Your name and address are not required to be correct. If you do, please say browser name in comments.

Thanks,
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 28 2020, 07:29 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Oh! So the affected member weren't there at all? This is beginning to sound really serious. Are the CC numbers stored on the server?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
citabriabob
post Jul 28 2020, 07:41 PM
Post #4


Newbie
*

Group: Members
Posts: 11
Joined: 27-July 20
Member No.: 27,457



QUOTE(pandy @ Jul 28 2020, 08:29 PM) *

Oh! So the affected member weren't there at all? This is beginning to sound really serious. Are the CC numbers stored on the server?


Nothing is stored on the server. charging is manual. Thnaks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 28 2020, 08:33 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



But when you get those fishy form submissions there is a CC number entered, isn't it? Is it a real number and does the card belong to the member who's name is used? If so, it must come from somewhere. wacko.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
citabriabob
post Jul 29 2020, 02:20 PM
Post #6


Newbie
*

Group: Members
Posts: 11
Joined: 27-July 20
Member No.: 27,457



Can you recommend someone who is paid to fix this?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 29 2020, 02:37 PM
Post #7


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Sorry, don't know.

Please answer my question about the CC numbers. I worry about that bit.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
citabriabob
post Nov 1 2020, 01:14 PM
Post #8


Newbie
*

Group: Members
Posts: 11
Joined: 27-July 20
Member No.: 27,457



OK. Given that I am unable to find the source of this issue and most orders are received correctly, I would like to eliminate (set qty to 0)? any item with a quantity greater than 9. Is this easy to do?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 1 2020, 06:31 PM
Post #9


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(citabriabob @ Nov 1 2020, 07:14 PM) *

I would like to eliminate (set qty to 0)? any item with a quantity greater than 9. Is this easy to do?

The time-consuming part should be to understand where in the script to add it, otherwise it's trivial.

An simpler alternative might be to use an INPUT TYPE=RANGE or (more compact) INPUT TYPE=NUMBER form field instead of an ordinary text field in the HTML code. That way you can limit the max value submitted by normal users. However it does not prevent bots, malware or malicious users from submitting bogus form data. See also
https://www.w3schools.com/tags/att_input_type_range.asp and
https://www.w3schools.com/tags/att_input_type_number.asp


But I'm not sure what you meant with this reply from July 29th:

QUOTE
Those items were NOT ordered; they appeared totally out of the blue.

Did you mean that:

1. The customer did place an order, but extra items in the order appeared out of the blue?

2. Or did the entire order including the CC number appears out of the blue?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
citabriabob
post Feb 17 2021, 03:51 PM
Post #10


Newbie
*

Group: Members
Posts: 11
Joined: 27-July 20
Member No.: 27,457



Found the culprit! After reviewing the data and finding an uninvited line item of quantity 03, seems as though the Chrome Autofill inserts two-digits at a time. Since we seldom get orders for > 9, we eliminated all entries over qty Length of 1. in the script. Done.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
citabriabob   HTML and Perl CGI   Jul 27 2020, 04:32 PM
pandy   You need to show a little, or rather a lot, more i...   Jul 27 2020, 04:38 PM
citabriabob   RE: HTML and Perl CGI   Jul 27 2020, 04:51 PM
Christian J   The W3C validator reports several HTML problems th...   Jul 28 2020, 07:35 AM
pandy   It's strange that it only happens occasionally...   Jul 28 2020, 08:04 AM
citabriabob   I'm sorry that I didn't do the validation ...   Jul 28 2020, 03:39 PM
Christian J   Still don't understand why autocomplete and h...   Jul 28 2020, 04:06 PM
citabriabob   Are you sure the form submissions are done by real...   Jul 28 2020, 04:26 PM
pandy   I don't think some old attributes can cause th...   Jul 28 2020, 04:38 PM
citabriabob   No. I just checked another order and it was 85. Qu...   Jul 28 2020, 05:40 PM
pandy   OK. Another thing. Did the customer actually order...   Jul 28 2020, 06:35 PM
citabriabob   Those items were NOT ordered; they appeared totall...   Jul 28 2020, 06:48 PM
pandy   Oh! So the affected member weren't there a...   Jul 28 2020, 07:29 PM
pandy   I filled out the form a couple of times. The confi...   Jul 28 2020, 07:39 PM
citabriabob   Oh! So the affected member weren't there ...   Jul 28 2020, 07:41 PM
pandy   But when you get those fishy form submissions ther...   Jul 28 2020, 08:33 PM
citabriabob   Can you recommend someone who is paid to fix this?   Jul 29 2020, 02:20 PM
pandy   Sorry, don't know. Please answer my question ...   Jul 29 2020, 02:37 PM
citabriabob   OK. Given that I am unable to find the source of t...   Nov 1 2020, 01:14 PM
Christian J   I would like to eliminate (set qty to 0)? any ite...   Nov 1 2020, 06:31 PM
citabriabob   The time-consuming part should be to understand wh...   Nov 2 2020, 02:01 PM
Christian J   The time-consuming part should be to understand w...   Nov 2 2020, 05:16 PM
citabriabob   Found the culprit! After reviewing the data an...   Feb 17 2021, 03:51 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 01:47 AM