Re: [PHP] Form Data Filtering

2007-06-16 Thread K. Hayes
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

Re: [PHP] Form Data Filtering

2007-06-16 Thread Stut
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

Re: [PHP] Form Data Filtering

2007-06-15 Thread Daniel Brown
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

Re: [PHP] Form Data Filtering

2007-06-15 Thread Tijnema
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:/

Re: [PHP] Form Data Filtering

2007-06-15 Thread Stut
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

Re: [PHP] Form Data Filtering

2007-06-15 Thread Tijnema
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

Re: [PHP] Form Data Filtering

2007-06-15 Thread Richard Heyes
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

Re: [PHP] Form data

2003-09-08 Thread Dan Anderson
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

Re: [PHP] Form data

2003-09-08 Thread Marek Kilimajer
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

Re: [PHP] Form data

2003-09-08 Thread CPT John W. Holmes
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

Re: [PHP] Form Data & History

2002-02-12 Thread Sebastian Benoit
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

Re: [PHP] Form Data & History

2002-02-11 Thread Analysis and Solutions
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

Re: [PHP] form data used on the same page?

2001-08-31 Thread
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

Re: [PHP] Form Data

2001-07-30 Thread Gerard Samuel
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

Re: [PHP] Form data is not "remembered"

2001-01-27 Thread Alain Fontaine
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

Re: [PHP] Form data is not "remembered"

2001-01-24 Thread Alex Black
> 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

Re: [PHP] Form data is not "remembered"

2001-01-24 Thread Monte Ohrt
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

Re: [PHP] Form data is not "remembered"

2001-01-24 Thread Steve Edberg
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

Re: [PHP] Form data is not "remembered"

2001-01-24 Thread Alain Fontaine
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

Re: [PHP] Form data is not "remembered"

2001-01-24 Thread Klepto
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