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
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?
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
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
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
> 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
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
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
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,
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
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
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
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
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 i
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
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
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
29 matches
Mail list logo