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

[PHP] Form Data Transfer b/w Pages

2004-04-21 Thread Sobajo
Two forms (form1 and form2 submit to the same controller.php file. The controller redirects the page depending on the value of hidden value 'page'. I want form data 'username' and 'password' to be available on both redirected pages (staff.php and customer.php). How do I accomplish this?

[PHP] Form data not available at first. Why?

2004-04-17 Thread Dave Pidgeon
Since the server upgrade to PHP 4.3.4 I have a odd problem with FORM data capture. When Page one and two are started in the open http:// ,the pair work just fine. If they are started with ssl https:// then page two has no data until you refresh and ok the resending of the data, At which point

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

[PHP] Form data

2003-09-08 Thread Hardik Doshi
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 user needs to find the appropriate faculty m

Re: [PHP] PHP & form data

2002-05-21 Thread Stavros Patiniotis
> I am experiencing problems with receiving form data into my > scripts. The phpinfo() function shows me: > > PHP_SELF > _POST["Action"] checkEmail > _POST["emailAddress"] st > _POST["submit"] Next >> > _COOKIE["uid"] > _COOKIE["emailAddre

[PHP] PHP & form data

2002-05-21 Thread Stavros Patiniotis
Hello, I am experiencing problems with receiving form data into my scripts. The phpinfo() function shows me: PHP_SELF _POST["Action"] checkEmail _POST["emailAddress"] st _POST["submit"] Next >> _COOKIE["uid"] _COOKIE["emailAddress"] _COOKIE["testCoo

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

[PHP] Form Data & History

2002-02-11 Thread Steven Walker
Hi, I'm having some problems with form data disappearing and wondered if anyone has experience with this. On a secure server I'm using PHP to handle form data to collect personal information. If data is missing or incorrect, the user is alerted to 'go back'... but upon going back in history,

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 witho

[PHP] form data used on the same page?

2001-08-31 Thread webmaster
Greetungs. Is it possible to use data collected in a form ON THE SAME PAGE without using the form's "submit" button? In other words, if a text field is filled in, can I capture (via PHP or other means) the info typed there and display it elsewhere on the same page? I realize the answer may very

Re: [PHP] Form Data

2001-07-30 Thread Gerard Samuel
cation Security - www.whitecrown.net > */ > > - Original Message - > From: Gerard Samuel <[EMAIL PROTECTED]> > To: PHP <[EMAIL PROTECTED]> > Sent: Monday, July 30, 2001 3:29 AM > Subject: [PHP] Form Data > > > | Hey all. Another thought. In a form I have there

[PHP] Form Data

2001-07-30 Thread Gerard Samuel
Hey all. Another thought. In a form I have there is a drop down box with age groups. ie 20-25 26-35 etc. If I submit the form and echo the variable for the dropdown box, the output is correct ie 20-25. When I inject the variable in mysql, the data in the database is 20- or 35-, its only

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 i

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

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

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 co

[PHP] Form data is not "remembered"

2001-01-24 Thread Alain Fontaine
Hi, I have a page with a couple of form fields that are being POSTed to a processing PHP script. The page that contains these form fields is itself a PHP page that uses sessions and so on. I have to make "server-side data validation" on the fields because of their complexity. When the user hits