Re: [PHP] Loop problem

2007-05-04 Thread Richard Lynch
On Fri, May 4, 2007 1:02 pm, Dan Shirah wrote: > type = document.Submit.request_type.value If you have only one "request_type" button, JavaScript can sorta figure out which one you want here, cuz there's only one. As soon as you have a whole bunch of them, it's got no idea which one you want...

Re: [PHP] Loop problem

2007-05-04 Thread Daniel Brown
No problem. I just prefer to use extract() for areas that are only pulling out a single set of data, or several sets with different variable names within the array. Less typing, no reassignments necessary. Personal preference, that's all. On 5/4/07, Dan Shirah <[EMAIL PROTECTED]> wrote: T

Re: [PHP] Loop problem

2007-05-04 Thread Dan Shirah
Thank you Daniel!! I didn't do it exactly as you suggested, but you put me in exactly the right direction! THANK YOU! Below is how I have it working if anyone else is interested. The javascript function showAlert(id,type) { alert( 'The type is:' + type + 'The ID is:' + id ); } Th

Re: [PHP] Loop problem

2007-05-04 Thread Daniel Brown
I know you said it's a form but where does the browser realize that? Using a hidden value such as that would require a POST or GET action via a form. JavaScript wouldn't work for that. However, you could do something like this: function showAlert(id,type) { alert('The type i

[PHP] Loop problem

2007-05-04 Thread Dan Shirah
Okay, I think this is a 1/2 PHP problem and 1/2 Javascript problem. And I think my Javascript problem is being caused by my PHP. Follow? The code below is a loop of records returned from my query: 1 - If the result is not empty it will loop through the results. 2 - It assigns variables based o

RE: [PHP] Loop Problem

2003-03-18 Thread Sysadmin
Yes, my apologies. I call the script by scriptname.php?MasterPage=1 or 2 or whatever... -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 4:45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Loop Problem [EMAIL PROTECTED

Re: [PHP] Loop Problem

2003-03-17 Thread Erik Price
[EMAIL PROTECTED] wrote: Ok, here's what I got. I'm trying to create an entire site that grabs all it's information (Page content, titles, link info, etc.) from a MySQL database. In this site I would like to have sub pages of master pages. For instance, Page 1 is a master page, Page 2 is a

[PHP] Loop Problem

2003-03-17 Thread Sysadmin
Ok, here's what I got. I'm trying to create an entire site that grabs all it's information (Page content, titles, link info, etc.) from a MySQL database. In this site I would like to have sub pages of master pages. For instance, Page 1 is a master page, Page 2 is a sub page of Page 1, and Pa

[PHP] loop problem

2002-07-04 Thread Emmanuel FAIVRE
Hi All, I'm currently working with a friends that want to use irc protocol at his work cause there is only http proxy. so it is very easy, i found phpIRC and everything works fine...He is very happy i've just seen that some process are always connected. this is really weird. so i started to