Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #9617
| From | Scott Johnson <noonehome@chalupasworld.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: PHP Contact Form, mt-rand(), problem Validating 1 input |
| Date | 2013-05-24 15:31 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <knopfn$nma$1@dont-email.me> (permalink) |
| References | <knlgvf$t8s$1@speranza.aioe.org> <8915447.D8rZLtVrR9@PointedEars.de> <knltv4$fo8$1@speranza.aioe.org> <knm5fj$pb8$1@dont-email.me> <kno0h2$1s3$1@speranza.aioe.org> |
On 5/24/2013 8:21 AM, Twayne wrote:
> On 5/23/2013 6:37 PM, Scott Johnson wrote:
>> On 5/23/2013 1:25 PM, Twayne wrote:
<snip>
>>
>> WOW, not a good way to get help. PE was correct.
>>
>> Supply the code to the failing function and someone may be able to help.
>>
>> But I would first check the attitude at the door.
>>
>> Scotty
>
> I did, Scottie. I posted relevant code and also offered to provide full
> code if it was necessary. Our "friend" simply decided to remove same in
> his response. Not good treatment of an admitted newbie.
>
> Twayne`
OK here is your Original Post:
************************
Hi, Newviw here;
Win 7 Home Premium, XAMPP 1.7.3, PHP 5.3,
Two pages: Form.php, check.php (& thanks.html).
They work fine; sends e-mail, formatted, and readable.
Form.php:
$d=($a.$b.$c);
echo "Your code is : " .$d." Enter it in the box below, including
dashes : <br />";
<form action="Check.php" method="post">
<b>Your Code: </b><input type="text" name="code" size="10
maxlength="14" /><br /><br /> ...
BUT: When I begin to add some security, things quit working.
1st, I add to form.php an mt-rand() build of a random code assigned to $d.
$d=($a.$b.$c);
echo "Your code is : " .$d." Enter it in the box below, including
dashes : <br />";
Works OK.
Check.php:
Now, when I try to validate the 'code' in check.php, things stop working.
$code = check_input($_POST['code'], "Enter Your Code");
stops everything in its tracks.
Any comments, advice, leads much appreiated.
TIA.
Twayne`
**********************
1. where is the relevant code of check_input(), the function that you
said is failing?
2. Where did you say that you will provide full code?
3. Best advice here, IMHO, if you don't like a reply then just ignore
it. If you bite back then you lose.
It is not that people do not want to help, but their time is very
valuable to them and like to get to the straight skinny. This is
probably why PE pointed you to how to ask good questions in here.
Will await the code.
Scotty
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
PHP Contact Form, mt-rand(), problem Validating 1 input Twayne <nobody@spamcop.net> - 2013-05-23 12:43 -0400
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-23 18:47 +0200
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Twayne <nobody@spamcop.net> - 2013-05-23 16:25 -0400
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-23 22:32 +0200
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Scott Johnson <noonehome@chalupasworld.com> - 2013-05-23 15:37 -0700
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-05-23 23:01 +0000
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Twayne <nobody@spamcop.net> - 2013-05-24 11:24 -0400
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Twayne <nobody@spamcop.net> - 2013-05-24 11:21 -0400
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Scott Johnson <noonehome@chalupasworld.com> - 2013-05-24 15:31 -0700
Re: PHP Contact Form, mt-rand(), problem Validating 1 input Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-25 09:56 +0200
csiph-web