Tuesday, July 7, 2009

[PHP_MySQL] Re: Form validation - Absolute newbie question...




Hi Just quick one these function will help you protect your database.
mysql_real_escape_string()
http://us.php.net/manual/en/function.mysql-real-escape-string.php
addslashes()
http://us.php.net/manual/en/function.addslashes.php

Read up on these on PHP website visit thee links provided.

Hope this was useful.
Thanks
Mo

--- In PHP_MySQL_usergroup@yahoogroups.com, Kristy Harris <kkh3@...> wrote:
>
> I'm noot sure if your form will be out on the web but wanted to also mention
> that you need to be careful about malicous entries in the fields that could
> severely damage your database. PHP offers a couple of functions to help
> with this. Unfortunately I can't remember them off the top of my head.
> That's what Google is for. :)
>
> Thanks,
> Kristy
>
> On Tue, Jul 7, 2009 at 11:23 AM, ammana2 <ammana2@...> wrote:
>
> >
> >
> > hi,ya silly one.but tough..too. u need to check whether field is empty or
> > not.before u submit the form n extract the fields u jus check the eaxh
> > feild..jus check for not empty condition..
> > --- In PHP_MySQL_usergroup@yahoogroups.com<PHP_MySQL_usergroup%40yahoogroups.com>,
> > Chris Parnell <cparnell1001@> wrote:
> > >
> > > Hi All,
> > >
> > > Apologies if this seems a silly question but I am struggling to find a
> > > decent answer.
> > > I have forms that I use that enter information into a MySQL database
> > > and I want some form of validation to ensure that there are no empty
> > > fields... that's all.
> > >
> > > Any help would really be appreciated.
> > >
> > > Thanks
> > > Chris
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>

__._,_.___
------------------------------------------

Come to the monthly meetings at UTD in Richardson, TX.
Second Tuesday of every month.
Recent Activity
Visit Your Group
Give Back

Yahoo! for Good

Get inspired

by a good cause.

Y! Toolbar

Get it Free!

easy 1-click access

to your groups.

Yahoo! Groups

Start a group

in 3 easy steps.

Connect with others.

.

__,_._,___

0 Comments: