Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread chris_payne
Hi there, Thanks to everyone who replied about the checkboxes, I must have had brainrott or something as the answer was so simple - just delete the entries for the items on the page and put them back in again. Simple and works like a charm :-) Regards Chris Payne - Original Message --

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
Paul M Foster wrote: When you say "it sends its id", what do you mean? You're not talking about the ID attribute of the checkbox tag, are you? The way I handle something like this is to give the checkbox tag a "value" attribute. Like: Each page has to be a form if you do this. When you chec

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 06:51:32PM -0700, chris_pa...@danmangames.com wrote: > Hi everyone, > > I'm having a major problem. I have an order system that allows you to add > items with a checkbox, that works fine. If you add an item and go back to > the product listing the items that are in your c

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
kranthi wrote: this depends much on the database implementation. obviously this is a one to many relationship. Probably easiest to do in the session database. You can store the session fields in an external database if you want the shopping cart to persist over multiple sessions. -- PHP Ge

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread kranthi
1. every time the form is submitted.. generate the list of all the check boxes which are checked and overwrite the previous value in the database. 2. get the list of all entries from the database see if the corresponding check box is checked.. if so leave it as it is, if not remove it... this dep

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
chris_pa...@danmangames.com wrote: Hi everyone, I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart show up as checked on the products listing

[PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread chris_payne
Hi everyone, I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart show up as checked on the products listing forms to make it easier to see what

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
Paul M Foster wrote: On Mon, May 18, 2009 at 04:43:20PM -0700, Michael A. Peters wrote: Paul M Foster wrote: That's the same problem XML has. The original idea was that you could, for example, have an invoice, and because it was marked up with the appropriate tags, everyone would be able to u

Re: [PHP] CSS & tables

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 04:43:20PM -0700, Michael A. Peters wrote: > Paul M Foster wrote: > >> >> That's the same problem XML has. The original idea was that you could, >> for example, have an invoice, and because it was marked up with the >> appropriate tags, everyone would be able to understand

Re: [PHP] file_get_contents works in base script but not in an included script

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 03:54:31PM -0600, LinuxManMikeC wrote: > In PHP4, I am using file_get_contents('file.sql',true) to bring in SQL > queries from files who's directory is on the include path. It works > fine in the main php scripts (ones accessible through URLs), but when > done in a php scr

Re: [PHP] CSS & tables

2009-05-18 Thread Benjamin Hawkes-Lewis
On 18/5/09 21:35, PJ wrote: I anyone knows where there is a real source of information about CSS, how to use it with logical explanations of what is used how, I sure would like to hear aboutit. Did you try the sources I already linked you to? Surely I must be wrong but there must be a logical

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
Paul M Foster wrote: That's the same problem XML has. The original idea was that you could, for example, have an invoice, and because it was marked up with the appropriate tags, everyone would be able to understand what it meant. xml provides a standard way of pointing the reader to a referen

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
tedd wrote: It seems to me that things like header, navigation, content, and footer would be pretty standardized. However, in some sites the header called the banner, footer is called copyright, navigation is called side-bar, and content is called wrapper or something even less semantic. W

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
tedd wrote: At 4:05 AM +0100 5/18/09, Nathan Rixham wrote: Paul M Foster wrote: And by the way, this attitude of "My code is fine; your browser sucks; upgrade" can be the worst kind of arrogance, and people react to it exactly as though it were arrogance. There used to be the same kind of attit

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
Nathan Rixham wrote: When I go and buy a film I don't buy a vhs or a betamax.. because I can't - that industry simply stopped making them and if I want to own a new film I buy the dvd - I don't write to paramount and complain because I only have a betamax. Funny - I'm about to finally buy

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
tedd wrote: However, I cite things like a calendar, and your MUD site, and other such solutions that would be very difficult to accomplish using pure css. I don't know about the MUD site - but again, a calendar is tabular data and therefore belongs in a table. The design sin is using tabl

Re: [PHP] CSS & tables

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 05:55:47PM -0400, PJ wrote: > Marc Christopher Hall wrote: > > and so I don't feel like a complete ass > > > > http://jeffhowden.com/code/css/forms/ > > > > > > __ Information from ESET Smart Security, version of

Re: [PHP] CSS & tables

2009-05-18 Thread PJ
Marc Christopher Hall wrote: > and so I don't feel like a complete ass > > http://jeffhowden.com/code/css/forms/ > > > __ Information from ESET Smart Security, version of virus signature > database 4084 (20090518) __ > > The message was checked

[PHP] file_get_contents works in base script but not in an included script

2009-05-18 Thread LinuxManMikeC
In PHP4, I am using file_get_contents('file.sql',true) to bring in SQL queries from files who's directory is on the include path. It works fine in the main php scripts (ones accessible through URLs), but when done in a php script that is included by one of the main scripts I just get false instead

Re: [PHP] CSS & tables

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 04:13:47PM -0400, tedd wrote: > At 8:15 PM +0100 5/18/09, Ashley Sheridan wrote: >> On Sun, 2009-05-17 at 14:48 -0400, tedd wrote: >> >> > I think the next big thing will be an argument over meaning. :-) >>> >> I don't mean using id attributes that appear to have meaning,

RE: [PHP] CSS & tables

2009-05-18 Thread Marc Christopher Hall
and so I don't feel like a complete ass http://jeffhowden.com/code/css/forms/ __ Information from ESET Smart Security, version of virus signature database 4084 (20090518) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing

RE: [PHP] CSS & tables

2009-05-18 Thread Marc Christopher Hall
ESET Smart Security, version of virus signature database 4084 (20090518) __ The message was checked by ESET Smart Security. http://www.eset.com __ Information from ESET Smart Security, version of virus signature database 4084 (20090518) __ The message was checked by ESET

Re: [PHP] CSS & tables

2009-05-18 Thread Ashley Sheridan
On Mon, 2009-05-18 at 16:35 -0400, PJ wrote: > Ashley Sheridan wrote: > > On Sun, 2009-05-17 at 14:48 -0400, tedd wrote: > > > >> At 10:48 AM +0100 5/16/09, Ashley Sheridan wrote: > >> > >>> Trust me, semantics are gonna be the next big thing, > >>> > >> Semantics? > >> > >> What do

Re: [PHP] CSS & tables

2009-05-18 Thread PJ
Ashley Sheridan wrote: > On Sun, 2009-05-17 at 14:48 -0400, tedd wrote: > >> At 10:48 AM +0100 5/16/09, Ashley Sheridan wrote: >> >>> Trust me, semantics are gonna be the next big thing, >>> >> Semantics? >> >> What do you mean by that? >> >> And therein lies the problem -- what mean

Re: [PHP] CSS & tables

2009-05-18 Thread Ashley Sheridan
On Mon, 2009-05-18 at 16:13 -0400, tedd wrote: > At 8:15 PM +0100 5/18/09, Ashley Sheridan wrote: > >On Sun, 2009-05-17 at 14:48 -0400, tedd wrote: > > > > > I think the next big thing will be an argument over meaning. :-) > >> > >I don't mean using id attributes that appear to have meaning, but

Re: [PHP] CSS & tables

2009-05-18 Thread tedd
At 8:15 PM +0100 5/18/09, Ashley Sheridan wrote: On Sun, 2009-05-17 at 14:48 -0400, tedd wrote: > I think the next big thing will be an argument over meaning. :-) I don't mean using id attributes that appear to have meaning, but using the proper tags to mark up content. That's things like

Re: [PHP] CSS & tables

2009-05-18 Thread Ashley Sheridan
On Sun, 2009-05-17 at 14:48 -0400, tedd wrote: > At 10:48 AM +0100 5/16/09, Ashley Sheridan wrote: > >Trust me, semantics are gonna be the next big thing, > > Semantics? > > What do you mean by that? > > And therein lies the problem -- what means something to me, may not to you. > > For example

Re: [PHP] Re: CSS & tables

2009-05-18 Thread Benjamin Hawkes-Lewis
On 18/5/09 14:20, Al wrote: It appears this thread has neglected to mention the "display" property values that emulate table elements, e.g., table-row, table-cell, etc. It's mentioned them at least twice. As in: where *.cell{display:table-cell}. Thus, one can make a complete table without on

Re: [PHP] Re: CSS & tables

2009-05-18 Thread Al
Paul M Foster wrote: On Mon, May 18, 2009 at 09:20:56AM -0400, Al wrote: PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am

Re: [PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Cesco
Thank you Il giorno 18/mag/09, alle ore 18:15, Bruno Fajardo ha scritto: This kind of tip is raised in form of notices. So, to enable that, use the following function on top of your scripts: error_reporting(E_ALL | E_NOTICE); Best regards, Bruno. -- PHP General Mailing List (http://www.

Re: [PHP] CSS & tables

2009-05-18 Thread Nathan Rixham
tedd wrote: At 5:14 PM +0100 5/18/09, Nathan Rixham wrote: -- computing ... .. . hows the childhood memories? I had a childhood? Cheers, tedd not sure? check the photo album - that's what I do - then look on like a 3rd person -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] CSS & tables

2009-05-18 Thread tedd
At 5:14 PM +0100 5/18/09, Nathan Rixham wrote: -- computing ... .. . hows the childhood memories? I had a childhood? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Bruno Fajardo
This kind of tip is raised in form of notices. So, to enable that, use the following function on top of your scripts: error_reporting(E_ALL | E_NOTICE); Best regards, Bruno. 2009/5/18 Paul M Foster > On Mon, May 18, 2009 at 05:38:37PM +0200, Cesco wrote: > > > Is it possible to set a parameter

Re: [PHP] CSS & tables

2009-05-18 Thread Nathan Rixham
tedd wrote: At 8:52 PM +0100 5/17/09, Nathan Rixham wrote: semantics already are the next big thing and have been for a year or three. google aquired the leading semantic analysis software many years ago and have been using it ever since, likewise with yahoo and all the majors. further we've a

Re: [PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 05:38:37PM +0200, Cesco wrote: > Is it possible to set a parameter in PHP 5 to ask the interpreter to > raise an error every time I try to use a variable that wasn't > initialized before ? > > For example, I've write this piece of code in Python: > > > print(DonaldDuck) > >

Re: [PHP] Re: CSS & tables

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 09:20:56AM -0400, Al wrote: > > > PJ wrote: >> I know of no better place to ask. This may not be strictly a PHP issue, >> but... >> I am busting my hump trying to format rather large input pages with CSS >> and trying to avoid tables; but it looks to me like I am wasting my

Re: [PHP] CSS & tables

2009-05-18 Thread tedd
At 8:52 PM +0100 5/17/09, Nathan Rixham wrote: semantics already are the next big thing and have been for a year or three. google aquired the leading semantic analysis software many years ago and have been using it ever since, likewise with yahoo and all the majors. further we've all had open a

[PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Cesco
Is it possible to set a parameter in PHP 5 to ask the interpreter to raise an error every time I try to use a variable that wasn't initialized before ? For example, I've write this piece of code in Python: print(DonaldDuck) I get this error: Traceback (most recent call last): File "/U

Re: [PHP] CSS & tables

2009-05-18 Thread Nathan Rixham
tedd wrote: At 4:05 AM +0100 5/18/09, Nathan Rixham wrote: Paul M Foster wrote: And by the way, this attitude of "My code is fine; your browser sucks; upgrade" can be the worst kind of arrogance, and people react to it exactly as though it were arrogance. There used to be the same kind of attit

Re: [PHP] CSS & tables

2009-05-18 Thread tedd
At 4:05 AM +0100 5/18/09, Nathan Rixham wrote: Paul M Foster wrote: And by the way, this attitude of "My code is fine; your browser sucks; upgrade" can be the worst kind of arrogance, and people react to it exactly as though it were arrogance. There used to be the same kind of attitude with rega

[PHP] Re: CSS & tables

2009-05-18 Thread Al
PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise

[PHP] Re: SQL help?

2009-05-18 Thread O. Lavell
Skip Evans wrote: > Hey all, > > I have a SQL requirement I'm not quite sure how to compose. > > I have two tables, shows, and shows_dates. It's a one to many > relationship where there is a single entry in shows and multiple entries > in shows_dates that list each date and time for a play produ

Re: [PHP] SQL help?

2009-05-18 Thread Marcus Gnaß
Skip Evans wrote: > Hey all, > > I have a SQL requirement I'm not quite sure how to compose. > > I have two tables, shows, and shows_dates. It's a one to many > relationship where there is a single entry in shows and multiple entries > in shows_dates that list each date and time for a play produc

[PHP] Re: Parsing of forms

2009-05-18 Thread Peter Ford
Daniele Grillenzoni wrote: > I noticed that php's way to fill $_GET and $_POST is particularly > inefficient when it comes to handling multiple inputs with the same name. > > This basically mean that every in order to function > properly needs to have a name ending in '[]'. > > Wouldn't it be ea

Re: [PHP] CSS & tables

2009-05-18 Thread Sancar Saran
Well. If you really really want to go Table less css. You have to you one of those CSS frameworks. I suggest YAML And even with YAML. You have to fix your design to IE6. My point of view positioning with DIV was time consuming process and very frustrating experience (especially with IE6).

Re: [PHP] CSS & tables

2009-05-18 Thread Benjamin Hawkes-Lewis
On 18/5/09 08:03, Jim Lucas wrote: all major browser vendors don't even support CSS1 or CSS2 completely/correctly yet. I don't think any browser vendor intends to implement the original CSS2 Recommendation; instead they are aiming for compliance with the CSS 2.1 revision. We do have /very/

Re: [PHP] CSS & tables

2009-05-18 Thread Jim Lucas
Robert Cummings wrote: CSS3 will make our lives easier once it's fully supported by all major browser vendors... Rob, sorry to have to point this out to you, but all major browser vendors don't even support CSS1 or CSS2 completely/correctly yet. Plus, parts of what they do have implemented o