EMAIL PROTECTED]>
To: "kvigor" <[EMAIL PROTECTED]>
Cc:
Sent: Saturday, June 16, 2007 9:40 AM
Subject: Re: [PHP] Form Data Filtering
kvigor wrote:
if (in_array(strtolower($value), $profanity))
{
$profanity[$field] = "bad";
}
on php.net I haven't seen any ex
kvigor wrote:
if (in_array(strtolower($value), $profanity))
{
$profanity[$field] = "bad";
}
on php.net I haven't seen any example on using strtolower w/ arrays.
I tried this an I get the following output:
Please REMOVE the profanity in the following fields. Immediately!
Notice: Undefined
On 6/15/07, Tijnema <[EMAIL PROTECTED]> wrote:
On 6/15/07, Stut <[EMAIL PROTECTED]> wrote:
> Tijnema wrote:
> > -slut
>
> Actually it's -Stut. I hate it when people spell my name wrong!
>
> -Stut
>
Oh, didn't knew you were on the list of inappropriate words too ;)
Tijnema
--
PHP General Mailing
On 6/15/07, Stut <[EMAIL PROTECTED]> wrote:
Tijnema wrote:
> -slut
Actually it's -Stut. I hate it when people spell my name wrong!
-Stut
Oh, didn't knew you were on the list of inappropriate words too ;)
Tijnema
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Tijnema wrote:
-slut
Actually it's -Stut. I hate it when people spell my name wrong!
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 6/15/07, kvigor <[EMAIL PROTECTED]> wrote:
Hello,
I 'm checking form data for profanity but it only works if the
$_POST['var'] is lowercase I was wondering if anyone knew how I could catch
the profanity no matter what case it was. No matter if it was BAD or bad or
mixed like BaD?
Instead of
kvigor wrote:
Hello,
I 'm checking form data for profanity but it only works if the
$_POST['var'] is lowercase I was wondering if anyone knew how I could catch
the profanity no matter what case it was. No matter if it was BAD or bad or
mixed like BaD?
Use strcasecmp() or perhaps better, st
Forget about cookies and sessions (because cookies are evil). The way I
do something like this is:
$value)
{
if (!(($key == 'dont_save') OR ($key == 'dont_save_2')))
{ hidden($key, $value); }
}
function hidden($key, $value)
// saves lots of time
{ print "\n"; }
?>
Then you can keep i
Hidden form variables.
Hardik Doshi wrote:
Hi Group,
I have a form for adding a university course details.
It has some fields for which the parent form calls the
child form. For example: Each course is associated
with at least one faculty member. So when the user
enters faculty member then first
From: "Hardik Doshi" <[EMAIL PROTECTED]>
> I have a form for adding a university course details.
> It has some fields for which the parent form calls the
> child form. For example: Each course is associated
> with at least one faculty member. So when the user
> enters faculty member then first use
Analysis and Solutions([EMAIL PROTECTED])@2002.02.11 23:19:57 +:
> > back'... but upon going back in history, all the data that was in the
> > form is lost. This did not occur on my regular not-secure web server.
>
> Page caching. You can alter that through the header() function. But, a
No
Howdy Steven:
Steven Walker wrote:
>
> If data is missing or incorrect, the user is alerted to 'go
> back'... but upon going back in history, all the data that was in the
> form is lost. This did not occur on my regular not-secure web server.
Page caching. You can alter that through the header
From: webmaster <[EMAIL PROTECTED]>
Date: Fri, Aug 31, 2001 at 07:46:41AM -0500
Message-ID: <003001c1321a$fb84afc0$[EMAIL PROTECTED]>
Subject: [PHP] form data used on the same page?
> Greetungs.
>
> Is it possible to use data collected in a form ON THE SAME PAGE without
> using the form's "subm
Yup, that was it. I had it set to 3 in mysql. Thanks for the pointer...
Chris Lambert - WhiteCrown Networks wrote:
> Try changing the column length to five.
>
> /* Chris Lambert, CTO - [EMAIL PROTECTED]
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.n
Hi,
Actually, the reason why form data is not remembered is because I use
sessions, and when you use sessions, the browser is told not to cache
anything, which is pretty smart actually.
The easy solution is to store the user's input into a session variable to
"remember" it that way, and display
> If the form page is not being cached, it would probably get reloaded
> when they clicked back, thus losing the data.
>
> I'd suggest redrawing the form with the fields populated and with the
> appropriate error messages. Then you don't need to mess with caches or
> sessions for that matter, and
If the form page is not being cached, it would probably get reloaded
when they clicked back, thus losing the data.
I'd suggest redrawing the form with the fields populated and with the
appropriate error messages. Then you don't need to mess with caches or
sessions for that matter, and the user do
At 2:41 AM -0800 1/24/01, Klepto wrote:
>Try the "GET" method in the form.
>
>Jaks
>- Original Message -
>From: Alain Fontaine <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, January 24, 2001 2:11 AM
>Subject: [PHP] Form data is not "remembered"
>
>
>> Hi,
>>
>> I have a p
Hi,
Thanks for the hint, but using GET method doesn't change anything,
unfortunately.
"Klepto" <[EMAIL PROTECTED]> a écrit dans le message news:
001401c085f2$3c8801a0$[EMAIL PROTECTED]
> Try the "GET" method in the form.
>
> Jaks
> - Original Message -
> From: Alain Fontaine <[EMAIL PRO
Try the "GET" method in the form.
Jaks
- Original Message -
From: Alain Fontaine <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:11 AM
Subject: [PHP] Form data is not "remembered"
> Hi,
>
> I have a page with a couple of form fields that are being POSTed
20 matches
Mail list logo