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: snip SCRIPT LANGUAGE=JavaScript function

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 ); }

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:

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

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