Re: [PHP-DB] Forms submitting to a session array

2008-01-13 Thread Chris
Thomas wrote: I'm trying to create a shopping cart where users can visit a product page (called from a MySQL database depending on the url ending in ?product_id=#). On the product page users can select options from dropdown lists (such as color, etc.) These dropdown lists are also dynamically

[PHP-DB] Forms submitting to a session array

2008-01-13 Thread Thomas
I'm trying to create a shopping cart where users can visit a product page (called from a MySQL database depending on the url ending in ?product_id=#). On the product page users can select options from dropdown lists (such as color, etc.) These dropdown lists are also dynamically generated f

Re: [PHP-DB] forms and method POST - variables

2008-01-09 Thread Chris
Because I got some old scripts where I don´t have this setting.they worked on MS Win2000 - PWS and PHP 4.0 but now - with Apache 2.2.6, PHP 5.2 on WIN XP it doesn´t work. You might be using the old format of $HTTP_POST_VARS. Do a search for that string and change it to $_POST and the same f

Re: [PHP-DB] forms and method POST - variables

2008-01-09 Thread Daniel Brown
On Jan 9, 2008 11:25 AM, Lukáš Moravec <[EMAIL PROTECTED]> wrote: > Hi, > > I have one question about forms and php (which I use for Mysql too). > > Do I need for variables from any form in html and method POST (then in php > script) to set these variables with: > > $variable=$_POST['variable']; [s

RE: [PHP-DB] forms and method POST - variables

2008-01-09 Thread Miguel Guirao
Sent: Miércoles, 09 de Enero de 2008 10:26 a.m. To: php-db@lists.php.net Subject: [PHP-DB] forms and method POST - variables Hi, I have one question about forms and php (which I use for Mysql too). Do I need for variables from any form in html and method POST (then in php script) to set these variables

[PHP-DB] forms and method POST - variables

2008-01-09 Thread Lukáš Moravec
Hi, I have one question about forms and php (which I use for Mysql too). Do I need for variables from any form in html and method POST (then in php script) to set these variables with: $variable=$_POST['variable']; For example: FORM Input something And then.in d

Re: [PHP-DB] Forms with letter verification

2006-07-29 Thread Dave W
You mean a CAPTCHA script? On 7/29/06, Ron Piggott (PHP) <[EMAIL PROTECTED]> wrote: You know forms which have a security field where the user reads back the letters that are displayed? I am wondering if someone has the time to coach me in writing this --- or if you know of a web page that show

[PHP-DB] Forms with letter verification

2006-07-29 Thread Ron Piggott (PHP)
You know forms which have a security field where the user reads back the letters that are displayed? I am wondering if someone has the time to coach me in writing this --- or if you know of a web page that shows how to create this feature. I have already created a set of graphical letters. Ron

[PHP-DB] Forms with letter security

2006-06-16 Thread Ron Piggott (PHP)
I have a set of graphical letters A to Z. I want some displayed and then keyed into a security field to verify a person is submitting the form. I have seen these used before on shopping carts. I know about creating salts to select which letters to choose. What I am wondering is if there is a

Re: [PHP-DB] Forms...

2005-03-10 Thread Jochem Maas
Neil Smith [MVP, Digital media] wrote: At 07:52 10/03/2005 +, you wrote: Message-ID: <[EMAIL PROTECTED]> Date: Wed, 09 Mar 2005 20:37:36 +0100 From: Jochem Maas <[EMAIL PROTECTED]> if your into XHTML: Actually that's invalid XHTML (it won't validate) due to a typo I guess. true, yeah I added

Re: [PHP-DB] Forms...

2005-03-10 Thread Neil Smith [MVP, Digital media]
At 07:52 10/03/2005 +, you wrote: Message-ID: <[EMAIL PROTECTED]> Date: Wed, 09 Mar 2005 20:37:36 +0100 From: Jochem Maas <[EMAIL PROTECTED]> if your into XHTML: Actually that's invalid XHTML (it won't validate) due to a typo I guess. Each XML (aka XHTML) DOM element can only have a ~single~ a

Re: [PHP-DB] Forms...

2005-03-09 Thread Jochem Maas
'checked'. I haven't tried it out but I assume the following html would result in an unchecked box - I also imagine that that may depend on the DOCTYPE of the output page - and I may just be plain wrong :). Bastien From: Mark Benson <[EMAIL PROTECTED]> To: php-db@lists.php.n

RE: [PHP-DB] Forms...

2005-03-09 Thread Bastien Koert
I use this format > Right Eye(s) Bastien From: Mark Benson <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [PHP-DB] Forms... Date: Wed, 9 Mar 2005 19:12:31 + Does anyone know if it is possible to have 'checkbox' elements in a form appear 'checked' or

[PHP-DB] Forms...

2005-03-09 Thread Mark Benson
Does anyone know if it is possible to have 'checkbox' elements in a form appear 'checked' or 'unchecked' when a page loads data from a MySQL data source? Can I use an attribute in the tag to switch that? -- Mark Benson AIM - SilValleyPirate MSN - [EMAIL PROTECTED] Visit FlatPackMacs online:

RE: [PHP-DB] Forms list from database

2004-11-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 01 November 2004 21:11, Jason T. Davidson wrote: > Here is the code: > > > cellspacing="0"> > > > > >while ($check=

RE: [PHP-DB] Forms list from database

2004-11-01 Thread Norland, Martin
nnect to the database/etc. is. - Martin Norland, Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital. -Original Message- From: Jason T. Davidson [mailto:[EMAIL PROTECTED] Se

Re: [PHP-DB] Forms list from database

2004-11-01 Thread Jason T. Davidson
Here is the code: while ($check=mysql_fetch_array($result)){ print "$check[LNAME],$check[FNAME]($check[CID])"; } ?> -- Jason Davidson Juan Stiller wrote: It might be usefull to see the code you are using to show the query results

Re: [PHP-DB] Forms list from database

2004-11-01 Thread Juan Stiller
It might be usefull to see the code you are using to show the query results. --- "Jason T. Davidson" <[EMAIL PROTECTED]> escribió: > I am trying to take information from a database and > show that info in a > forms list. I have been trying this with while(), > but it never comes > out and di

[PHP-DB] Forms list from database

2004-11-01 Thread Jason T. Davidson
I am trying to take information from a database and show that info in a forms list. I have been trying this with while(), but it never comes out and displays correctly. Any help would be appreciated. -- Jason Davidson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP-DB] RE:[PHP-DB] Forms and more forms?

2004-03-05 Thread Swan, Nicole
PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 2:11 AM To: [EMAIL PROTECTED] Subject: Spam:[PHP-DB] Forms and more forms? I'm talking to a MySQL database that contains info on all downloads from our site. I list all these entries, on a PHP page. The table structure etc

Re: [PHP-DB] Forms and more forms?

2004-03-05 Thread Tristan . Pretty
Cheers, I'll swing by php.net to learn about these functions... Tris... Jason Wong <[EMAIL PROTECTED]> 05/03/2004 10:42 To [EMAIL PROTECTED] cc Subject Re: [PHP-DB] Forms and more forms? On Friday 05 March 2004 17:10, [EMAIL PROTECTED] wrote: > TO enable multiple del

Re: [PHP-DB] Forms and more forms?

2004-03-05 Thread Jason Wong
On Friday 05 March 2004 17:10, [EMAIL PROTECTED] wrote: > TO enable multiple deletions, I must place the whole table in another > form. > What happens is that no matter how many deletions I select, it only picks > up the one at the top of the page, or none, if the top one isn't selected. print_r(

[PHP-DB] Forms and more forms?

2004-03-05 Thread Tristan . Pretty
I'm talking to a MySQL database that contains info on all downloads from our site. I list all these entries, on a PHP page. The table structure etc, are static, but the fields retrieved, are dynamic, based on the users search criteria. Within each result, I've added a small form, that posts that

RE: [PHP-DB] php-db Forms-Radio problems

2004-01-27 Thread Duane Lakoduk
- > From: Stuart [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 27, 2004 11:42 AM > To: Mignon Hunter > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] php-db Forms-Radio problems > > > Mignon Hunter wrote: > > > > Operation &

Re: [PHP-DB] php-db Forms-Radio problems

2004-01-27 Thread Mignon Hunter
THANK YOU duh me I knew it was something simple :( Mignon Hunter Webmaster Toshiba International Corporation (713) 466-0277 x 3461 (800) 466-0277 x 3461 >>> Stuart <[EMAIL PROTECTED]> 01/27/04 11:41AM >>> Mignon Hunter wrote: > > Operation & Maintenance > >

[PHP-DB] php-db- Forms radion buttons

2004-01-27 Thread Mignon Hunter
Hello I'm having a devil of a time with my form. I'm able to process checkboxes and fields but am having trouble with radio buttons. Here's how I'm doing the fields which works: Your Last Name Title

Re: [PHP-DB] php-db Forms-Radio problems

2004-01-27 Thread Stuart
Mignon Hunter wrote: Operation & Maintenance Engineering (Including Project Management) Management (other than corporate) Other - Please Specify

[PHP-DB] php-db Forms-Radio problems

2004-01-27 Thread Mignon Hunter
Hello I'm having a devil of a time with my form. I'm able to process checkboxes and fields but am having trouble with radio buttons. Here's how I'm doing the fields which works: Your Last Name Title

Re: [PHP-DB] forms with php/mysql

2003-06-10 Thread Philippe Rousselot
Thursday, June 05, 2003 4:18 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] forms with php/mysql > > > done > > you can find the files at > > www.alcatorda.com/jcp/test/files.html > > and try it at > > www.alctorda.com/jcp/test/enregistrer.php > > I am

RE: [PHP-DB] forms with php/mysql

2003-06-09 Thread Matthew Moldvan
ECTED] Subject: Re: [PHP-DB] forms with php/mysql done you can find the files at www.alcatorda.com/jcp/test/files.html and try it at www.alctorda.com/jcp/test/enregistrer.php I am sure it is full of bad codding but it works. I just have to make it nice now. Philippe Le Jeudi 5 Juin 2003

Re: [PHP-DB] forms with php/mysql

2003-06-06 Thread Philippe Rousselot
done you can find the files at www.alcatorda.com/jcp/test/files.html and try it at www.alctorda.com/jcp/test/enregistrer.php I am sure it is full of bad codding but it works. I just have to make it nice now. Philippe Le Jeudi 5 Juin 2003 06:15, Peter Beckman a écrit : > 1. Search the arc

Re: [PHP-DB] forms with php/mysql

2003-06-06 Thread Philippe Rousselot
nd > the code, though. > > Edward Dudlik > Becoming Digital > www.becomingdigital.com > > > - Original Message - > From: "Peter Beckman" <[EMAIL PROTECTED]> > To: "Philippe Rousselot" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]&

Re: [PHP-DB] forms with php/mysql

2003-06-05 Thread Becoming Digital
t expect them to work if you don't understand the code, though. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Peter Beckman" <[EMAIL PROTECTED]> To: "Philippe Rousselot" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECT

Re: [PHP-DB] forms with php/mysql

2003-06-05 Thread Peter Beckman
1. Search the archives, they are here: http://www.php.net/mailing-lists.php 2. If you aren't a coder, you probably cannot do what you ask; there aren't any pre-built simple systems that do exactly what you ask. You could look on freshmeat.net or sourceforge.com, but I doubt you'd find what you ar

[PHP-DB] forms with php/mysql

2003-06-05 Thread Philippe Rousselot
Hi, I need for an association to create a form using php/mysql. If I can understand php, I am not a coder, so if someone had the code I need, I would really be greatful. I need : 1. on a page someone identify himself or register to the service using a form where the person enter name, email(u

Re: [PHP-DB] Forms question..

2002-10-20 Thread .: B i g D o g :.
1. document.formname.elementname.focus(); Example: if my form has a name of testform and the first element is fname... then in the body tag i would do this... 2. Yeah, you need to use the select() method... so document.testform.element.select(); Example: That should work...or it might have

RE: [PHP-DB] Forms question..

2002-10-20 Thread John W. Holmes
> When I have an input form I must click on the first input field. Is there > anyway to have it active when the form loads? Javascript, not PHP. Something like document.form.element.setfocus(), I think. > #2 When I tab down to the next input field, is there anyway to have it > highlight what is

[PHP-DB] Forms question..

2002-10-20 Thread James Hatridge
Hi all... When I have an input form I must click on the first input field. Is there anyway to have it active when the form loads? #2 When I tab down to the next input field, is there anyway to have it highlight what is in the field (ie the default data) so that it will overwrite it? #3 How c

Re: [PHP-DB] Forms and mysql

2002-04-04 Thread Jason Wong
On Friday 05 April 2002 13:42, Jennifer Downey wrote: > If you had read more carefully you'd see that I don't have THE email sent > to me. The replies were never in the archives. Email & posts, many people don't know/don't differentiate/don't care about the difference. Obviously you're not one o

Re: [PHP-DB] Forms and mysql

2002-04-04 Thread Marius Ursache
if you have full access to internet (no proxy or something) try to search on news servers (alt.php or oher php related newsgroups) news server: news2.euro.net or other... Jennifer Downey a écrit : > In any case the email or replies are not in the archives. I have searched > them and came up emp

Re: [PHP-DB] Forms and mysql

2002-04-04 Thread Jennifer Downey
In any case the email or replies are not in the archives. I have searched them and came up empty. "Marius Ursache" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Jennifer Downey a écrit : > > > If you had read more carefully you'd see that I don't have THE

Re: [PHP-DB] Forms and mysql

2002-04-04 Thread Marius Ursache
Jennifer Downey a écrit : > If you had read more carefully you'd see that I don't have THE email sent to > me. The replies were never in the archives. > I guess since I am a woman everyone feels they need to send private email > instead of replying with a post. > maybe... maybe not... on my NS

Re: [PHP-DB] Forms and mysql

2002-04-04 Thread Jennifer Downey
If you had read more carefully you'd see that I don't have THE email sent to me. The replies were never in the archives. I guess since I am a woman everyone feels they need to send private email instead of replying with a post. Jennifer "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMA

Re: [PHP-DB] Forms and mysql

2002-04-04 Thread Jason Wong
On Friday 05 April 2002 07:55, Jennifer Downey wrote: > Hi all, > > I know I've asked this before and wouldn't be asking again if I had the > email that you people replied back with. Windows took a you know what on me > and I had to format the hard drive. If this has been answered before then sea

[PHP-DB] Forms and mysql

2002-04-04 Thread Jennifer Downey
Hi all, I know I've asked this before and wouldn't be asking again if I had the email that you people replied back with. Windows took a you know what on me and I had to format the hard drive. Anyway here is what I have. This is items.php: "; echo "$return[name]"; echo "Quantity $return[quanti

Re: [PHP-DB] Forms

2002-03-22 Thread Ron
Line 53 is the line that is commented out "Ron" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > (((Point taken))) no harm intended > Parse error: parse error in C:\**\*\tt.php on line 53 > > > -- PHP Database Mailing List (http://www.php.net/) To uns

Re: [PHP-DB] Forms

2002-03-22 Thread Ron
(((Point taken))) no harm intended Parse error: parse error in C:\**\*\tt.php on line 53 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Forms

2002-03-22 Thread Rick Emery
Message- From: Ron [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:05 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Forms I know this is suppose to be databases, but the most knowledgeable people seem to be in here. This is the first time that I have tried to conquer a form in PHP(which I

[PHP-DB] Forms

2002-03-22 Thread Ron
I know this is suppose to be databases, but the most knowledgeable people seem to be in here. This is the first time that I have tried to conquer a form in PHP(which I obviously am not doing) so that I can have a total PHP script page and move away from HTML. Here is my code as followed by my bo

[PHP-DB] Forms carrying values.

2002-02-11 Thread Bzdpltd
Hi list, hope someone can help me here. I have content management system I have designed. I am still learning php so help here would be appreciated. The user logs into the system, and we carry there user name over the pages using a link to each page with the value of their name carried over as

Re: [PHP-DB] Forms error in a catalog by Greenspan & Bulger (sorry line 33)

2001-11-03 Thread Darren
Sorry for the last post it is line 33 As follows // string start_form ([string action [, array attributes]]) // This function returns an HTML tag. If the first argument // is empty, the value of the global Apache variable SCRIPT_NAME // is used for the 'action' attribute of the tag. Other //

Re: [PHP-DB] Forms error in a catalog by Greenspan & Bulger

2001-11-03 Thread Darren
Thanks for the help on the free editors. Line 31 is blank The section is as follows: // string start_form ([string action [, array attributes]]) // This function returns an HTML tag. If the first argument // is empty, the value of the global Apache variable SCRIPT_NAME // is used for the 'act

Re: [PHP-DB] Forms error in a catalog by Greenspan & Bulger

2001-11-03 Thread Darren
gure out without going through > the entire script where your error is. > > HTH > Paul > > - Original Message - > From: "Darren" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, November 03, 2001 8:49 AM > Subject: [PHP-DB

Re: [PHP-DB] Forms error in a catalog by Greenspan & Bulger

2001-11-03 Thread p.whiter
ovember 03, 2001 8:49 AM Subject: [PHP-DB] Forms error in a catalog by Greenspan & Bulger : Greetings All! : : I am working on making a catalog from the example used in "MySQL/PHP : Databases Applications" by Jay Greenspan andBrad Bulger. I am using : php3 on the remote unix server.

[PHP-DB] Forms error in a catalog by Greenspan & Bulger

2001-11-02 Thread Darren
Greetings All! I am working on making a catalog from the example used in "MySQL/PHP Databases Applications" by Jay Greenspan andBrad Bulger. I am using php3 on the remote unix server. I had to remain all the php files and there references in the documents from .php to .php3. I am editing t

Re: [PHP-DB] Forms Question

2001-09-06 Thread Paul Gardiner
?> - Original Message - From: "Steve Cayford" <[EMAIL PROTECTED]> To: "Jeff Grossman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 11:36 PM Subject: Re: [PHP-DB] Forms Question > > On Wednesday, September 5, 20

Re: [PHP-DB] Forms Question

2001-09-05 Thread Michael Garvin
The solution is easier than you think. You'll need to insert an if statement in your option html tag that says echo "Signal Hill\n"; should become: echo "Signal Hill\n"; Jeff Grossman wrote: >Hello, >Here is the code I have: > >while ($row=mysql_fetch_array($result)) { > $store=$row["store

Re: [PHP-DB] Forms Question

2001-09-05 Thread Steve Cayford
On Wednesday, September 5, 2001, at 04:50 PM, Jeff Grossman wrote: > Hello, > Here is the code I have: > > while ($row=mysql_fetch_array($result)) { >$store=$row["store"]; >$jobdesc=$row["jobdesc"]; > echo ""; > echo "Store: > > Signal Hill > Reseda > O

Re: [PHP-DB] Forms Question

2001-09-05 Thread Bas Jobsen
ot; would also work i should use: while (LIST($store,$jobdesc)=mysql_fetch_row($result)) { . - Original Message - From: "Jeff Grossman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 11:50 PM Subject: [PHP-DB] Forms Question > Hello, >

[PHP-DB] Forms Question

2001-09-05 Thread Jeff Grossman
Hello, Here is the code I have: while ($row=mysql_fetch_array($result)) { $store=$row["store"]; $jobdesc=$row["jobdesc"]; echo ""; echo "Store: Signal Hill Reseda Orange West Covina Riverside Norwalk Fountain Valley

Re: [PHP-DB] Forms and PHP

2001-04-17 Thread JD Daniels
ields is or: echo $HTTP_POST_VARS[]; If This works, you need to change the track_vars in php.ini JD Daniels -Original Message- From: JD Daniels Sent: Sunday, April 15, 2001 7:44 PM Subject: [PHP-DB] Forms and PHP >From [EMAIL PROTECTED] Sun Apr 15 19:34:23 2001 Return-Path

Re: [PHP-DB] Forms and PHP

2001-04-15 Thread CC Zona
In article <005201c0c61d$bd2bf620$97fe013d@piii500>, [EMAIL PROTECTED] ("CK Raju") wrote: > I am unsuccessful in attempting to have the FORM work with POST method, while > there is a with alongwith other variables that I am > accepting directly from text fields. > > Its something like this

[PHP-DB] Forms and PHP

2001-04-15 Thread CK Raju
I am using PHP4.0.0 on Mysql3.23.31 on a RH6.2(kernel2.4). I am unsuccessful in attempting to have the FORM work with POST method, while there is a with alongwith other variables that I am accepting directly from text fields. Its something like this $tablefield ?> My problem starts he

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-07 Thread Boclair
Manuel, Manuel Lemos <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Hello boclair, | | On 05-Apr-01 01:58:24, you wrote: | | >I have a problem with a user input in a form required to be an | >integer, creating a variable for a mysql query. | | >I have instance

[PHP-DB] RE : [PHP-DB] Forms : Validating user input as integer

2001-04-07 Thread boclair
Manuel, Manuel Lemos <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Hello boclair, | | On 05-Apr-01 01:58:24, you wrote: | | >I have a problem with a user input in a form required to be an | >integer, creating a variable for a mysql query. | | >I have instance

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-07 Thread Manuel Lemos
Hello boclair, On 05-Apr-01 01:58:24, you wrote: >I have a problem with a user input in a form required to be an >integer, creating a variable for a mysql query. >I have instances where integer, 0, is being typed as letter,o. >The last discussion of validating the input was >http://marc.theaim

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread Boclair
Ben Udall <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | boclair wrote: | > I have a problem with a user input in a form required to be an | > integer, creating a variable for a mysql query. | > | > I have instances where integer, 0, is being typed as letter,o

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread Boclair
^^ Brad, - Original Message - From: Brad S. Jackson <[EMAIL PROTECTED]> To: boclair <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 11:54 PM Subject: Re: [PHP-DB] Forms : Validating user input is integer > > > This is probably the most efficient way to check.

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread boclair
- Original Message - From: Matt Williams <[EMAIL PROTECTED]> To: Boclair <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 11:28 PM Subject: RE: [PHP-DB] Forms : Validating user input is integer The line should read, and as I tested it, > &g

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread Ben Udall
boclair wrote: > I have a problem with a user input in a form required to be an > integer, creating a variable for a mysql query. > > I have instances where integer, 0, is being typed as letter,o. > > The last discussion of validating the input was > http://marc.theaimsgroup.com/?l=php-db&m=9720

RE: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread Matt Williams
> Whoops! Careless of me. The line should read, and as I tested it, > > elseif (eregi("[a-zA-Z]",$num)) { } > > Do you see any problem with this? Yes, same thing it will accept other character like !*- etc... try if(!eregi("^[0-9]+[0-9]*$",$num) { //error } M@ -- PHP Database M

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread Boclair
"Matt Williams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | | > or even just | > elseif (!eregi("[^a-zA-Z]"),$num)) { } | | But that would not stop other characters. | | M@ Whoops! Careless of me. The line should read, and as I tested it, elseif (ereg

RE: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread Matt Williams
> or even just > elseif (!eregi("[^a-zA-Z]"),$num)) { } But that would not stop other characters. M@ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EM

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread Boclair
ay, April 05, 2001 9:03 PM | Subject: RE: [PHP-DB] Forms : Validating user input is integer | | | > | > > To gain the full benefit of your suggestion I find that I can | validate | > > for a wrong entry containing a mix alphabetical and numerical | > > characters by altering

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread boclair
- Original Message - From: Matt Williams <[EMAIL PROTECTED]> To: boclair <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 9:03 PM Subject: RE: [PHP-DB] Forms : Validating user input is integer > > > To gain the full benefit of your suggestion I find that I c

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-05 Thread Boclair
led | javascript. For those who may be interested here is the server side method using eregi() as explained by Matt Williams xx - Original Message - From: Matt Williams <[EMAIL PROTECTED]> To: boclair <[EMAIL PROTECTED]> Sent: Thursday, April

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-04 Thread boclair
lidation was being with a javascript and the creation of the variable was OK. Further advise appreciated. Tim - Original Message - From: Steve Farmer <[EMAIL PROTECTED]> To: boclair <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 3:23 PM Subj

Re: [PHP-DB] Forms : Validating user input is integer

2001-04-04 Thread Steve Farmer
Hi tim, most certainly it can be done on the server side, it juts requires a round trip to the server is all i think it is .. if(!isinteger($input_var)): (check the exact function in the php manual) echo "this is an error (or whatever), press here to go back and correct your inpout"; ex

[PHP-DB] Forms : Validating user input is integer

2001-04-04 Thread boclair
I have a problem with a user input in a form required to be an integer, creating a variable for a mysql query. I have instances where integer, 0, is being typed as letter,o. The last discussion of validating the input was http://marc.theaimsgroup.com/?l=php-db&m=97207172003983&w=2 There it was