RE: [PHP] Button can't see form!

2002-07-05 Thread David Freeman


 > The problem I have is with a page I build dynamically. The 
 > whole page is encased in  tags. In between these tags
there 
 > are sections echoed as a result of a databasse query. Each of these 
 > sections is a form.

 > 
 > 
 > 
 > 
 > 
 >   dynamic content
 > 
 > 
 >   dynamic content
 > 
 > 
 >   dynamic content
 > 
 > 

[etc]

To the best of my knowledge you can't nest forms like this.  Even if you
can I'd suggest it's bad practice as you'll all too easily run into
problems and complexity issues (eg. Having to specifically name each
form etc).  I'd suggest finding a different way to achieve what you want
(more forms most likely).

CYA, Dave




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Button can't see form!

2002-07-04 Thread Danny Shepherd

Actually, it's Netscape'sCrap, if you get specific :) Java's a totally
different kettle of crap.

Danny.

- Original Message -
From: "Analysis & Solutions" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Thursday, July 04, 2002 4:05 PM
Subject: Re: [PHP] Button can't see form!

> And then folks with Java'sCrap turned off won't use your site.
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Button can't see form!

2002-07-04 Thread Analysis & Solutions

Folks:

On Thu, Jul 04, 2002 at 11:05:38AM -0400, Analysis & Solutions wrote:
> On Thu, Jul 04, 2002 at 01:44:00PM +0100, Mark Colvin wrote:
> > 
> >   > value='New' onClick="this.form.action='newproduct.php?mode=new';
> > this.form.submit()">
> 
> And then folks with Java'sCrap turned off won't use your site.
> 
> Why people go to such lengths to destroy the elegance of HTML I just don't 
> know...

Mark asked me off list how to write that in HTML...

 
  
   
  
 

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Button can't see form!

2002-07-04 Thread Marek Kilimajer

I dont think forms can be nested. In fact I'm pretty sure.

Mark Colvin wrote:

>I use the following line in some of my php scripts to navigate between
>pages:
>
> value='New' onClick="this.form.action='newproduct.php?mode=new';
>this.form.submit()">
>
>The problem I have is with a page I build dynamically. The whole page is
>encased in  tags. In between these tags there are sections
>echoed as a result of a databasse query. Each of these sections is a form.
>After all of the sections have been created, there is a button at the bottom
>of the page that is similar to that above. The button is outwith the form
>tags of the sections but within the form tags of the whole page i.e.
>
>
>
>
>
>
>  dynamic content
>
>
>  dynamic content
>
>
>  dynamic content
>
>
>
> value='New' onClick="this.form.action='newproduct.php?mode=new';
>this.form.submit()">
>
>
>
>Clicking on the button has no effect. On all my other pages this button
>behaves as it should. Why?
>
>
>
>This e-mail is intended for the recipient only and
>may contain confidential information. If you are
>not the intended recipient then you should reply
>to the sender and take no further ation based
>upon the content of the message.
>Internet e-mails are not necessarily secure and
>CCM Limited does not accept any responsibility
>for changes made to this message. 
>Although checks have been made to ensure this
>message and any attchments are free from viruses
>the recipient should ensure that this is the case.
>
>
>  
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Button can't see form!

2002-07-04 Thread Analysis & Solutions

On Thu, Jul 04, 2002 at 01:44:00PM +0100, Mark Colvin wrote:
> I use the following line in some of my php scripts to navigate between
> pages:
> 
>   value='New' onClick="this.form.action='newproduct.php?mode=new';
> this.form.submit()">

And then folks with Java'sCrap turned off won't use your site.

Why people go to such lengths to destroy the elegance of HTML I just don't 
know...

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php