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

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

2008-01-09 Thread Miguel Guirao
Well, it depends if you use an old version of PHP, in the latest version both arrays $_POST and $_GET are used to get passed variables!! I can't remember since what version PHP started to use these arrays!! MG -Original Message- From: Lukáš Moravec [mailto:[EMAIL PROTECTED] Sent:

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']; [snip!]

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 shows

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: input name=right_eye type=checkbox value=1 checked=checked value=1 / Actually that's invalid XHTML (it won't validate) due to a typo I

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: input name=right_eye type=checkbox value=1 checked=checked value=1 / Actually that's invalid

RE: [PHP-DB] Forms...

2005-03-09 Thread Bastien Koert
I use this format input name=right_eye type=checkbox value=1 ? if ($rows['right_eye']==1) { echo CHECKED ; } ?nbsp;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

Re: [PHP-DB] Forms...

2005-03-09 Thread Jochem Maas
Bastien Koert wrote: I use this format input name=right_eye type=checkbox value=1 ? if ($rows['right_eye']==1) { echo CHECKED ; } ?nbsp;Right Eye(s) if your into XHTML: input name=right_eye type=checkbox value=1 checked=checked value=1 / (Bastien already showed how to dynamically determine

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: form name=form1 method=post action=staff_code/add_code.php table width=600 border=0 align=center

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 displays

Re: [PHP-DB] Forms list from database

2004-11-01 Thread Jason T. Davidson
Here is the code: form name=form1 method=post action=staff_code/add_code.php table width=600 border=0 align=center cellpadding=0 cellspacing=0 tr bgcolor=#CC td colspan=3 bgcolor=#FFdiv align=center select name=controller id=controller option /option option ? while

RE: [PHP-DB] Forms list from database

2004-11-01 Thread Norland, Martin
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] Sent: Monday, November 01, 2004 3:11 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB

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()

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 deletions, I must place

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

2004-03-05 Thread Swan, Nicole
What does your HTML look like? Have you defined the delete checkbox as an array? For example: input type=checkbox name=select[] value=rowid / Notice the brackets to indicate an array. --Nicole --- Nicole Swan Web Programming Specialist Carroll College CCIT

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

2003-06-10 Thread Philippe Rousselot
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 sure it is full of bad codding but it works. I just have to make it nice now. Philippe Le Jeudi

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

2003-06-06 Thread Philippe Rousselot
- Original Message - From: Peter Beckman [EMAIL PROTECTED] To: Philippe Rousselot [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, 05 June, 2003 00:15 Subject: Re: [PHP-DB] forms with php/mysql 1. Search the archives, they are here: http://www.php.net/mailing-lists.php 2

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

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

2003-06-05 Thread Becoming Digital
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 PROTECTED] Sent: Thursday, 05 June, 2003 00:15 Subject: Re: [PHP-DB] forms

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

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 in

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... body onload=document.testform.fname.focus(); 2. Yeah, you need to use the select() method... so document.testform.element.select();

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 search

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:[EMAIL

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
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 email

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

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 of

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 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

RE: [PHP-DB] Forms

2002-03-22 Thread Rick Emery
First: cross-posting to multiple lists...not nice. Most PHP folks are on both lists. Second: your first sentence seems to indicate that unknowledgeable people inhabit the PHP list, vice the PHP-DB list. H GRIN Third: what error do you get when you get the parsing error? -Original

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

2001-11-03 Thread p.whiter
Hi If you get yourself any decent text editor, it will have an option to show line numbers. Plenty of free editors here: http://download.cnet.com/downloads/0,10151,0-4003619-106-0-1-0,00.html?tag=d ir Personally I use and would recommend 'Ultra-edit' It would probably be a good idea to just

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

2001-11-03 Thread Darren
Excellent!! I'll do it! I didn't know about the editors. I'll let you know. Thank you very much! Darren P.Whiter wrote: Hi If you get yourself any decent text editor, it will have an option to show line numbers. Plenty of free editors here:

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 form tag. If the first argument // is empty, the value of the global Apache variable SCRIPT_NAME // is used for the

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 form tag. If the first argument // is empty, the value of the global Apache variable SCRIPT_NAME // is used for the 'action' attribute of the form tag.

Re: [PHP-DB] Forms Question

2001-09-06 Thread Paul Gardiner
- 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, 2001, at 04:50 PM, Jeff Grossman wrote: Hello, Here is the code I have

Re: [PHP-DB] Forms Question

2001-09-05 Thread Bas Jobsen
Hello, Here is the code I have: sure, your query is something like: select ..., store, jobdesc .. FROM .. why using: $store=$row[store]; $jobdesc=$row[jobdesc]; echodhdhdh.$row[store].blabla would also work i should use: while (LIST($store,$jobdesc)=mysql_fetch_row($result))

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 FORM METHOD=post ACTION=update.php; echo PStore: Select NAME=\$store\

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 option VALUE=\Signal Hill\Signal Hill\n; should become: echo option VALUE=\Signal Hill\; if ($store == 'Signal Hill') { print selected; } echo Signal Hill/option\n; Jeff

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

2001-04-08 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 instances

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

[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 instances

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

2001-04-05 Thread boclair
r validation 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 Subject: Re: [PHP-DB] Forms

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 can validate for a wrong entry

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

2001-04-05 Thread Boclair
3 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 the elseif line to read | | elseif (!eregi(&quo

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:

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

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

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, elseif (eregi("[a-zA-Z]&

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

2001-04-05 Thread Boclair
d, - 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. The preg functions are faster than the e

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. |