Re: [PHP] Form's : making me sick!

2001-11-18 Thread Papp Gyozo

  I just want to know how to make a form inside a form get to respond or
  dont make any browser errors?

This is prohibited by either SGML DTDs if HTML 
4.01(http://www.w3.org/TR/html4/interact/forms.html#h-17.3):

!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form --

and XML DTDs of XHTML 1.0 (http://www.w3.org/TR/xhtml1/#prohibitions)
form 
cannot contain other form elements.

So, it is a good reason why browsers don't like it.

Respect to your original problem, value of element select can be changed by 
JavaScript
without submitting the whole form.

Here is a little example (this behaves like a combobox ,common input + select with 
history list):

input type=text name=combo_input style=width:5em 
onKeypress=combo_select.value=''; return true;br
 select name=combo_select style=width:5em tabindex=-1
onChange=combo_input.value=combo_select.value; return true; 
onFocus=this.blur; return true;
  option value=oneone/option
  option value=twotwo/option
  option value=threethree/option
 /select

- Original Message - 
From: Steve Maroney [EMAIL PROTECTED]
To: George Pitcher [EMAIL PROTECTED]
Cc: De Necker Henri [EMAIL PROTECTED]; PHP-General (E-mail) 
[EMAIL PROTECTED]
Sent: Saturday, November 17, 2001 8:18 PM
Subject: Re: [PHP] Form's : making me sick!


 Thats sounds right becasuse anything between form ... /form can only
 will be passeed only to one script.
 
 Steve
 
 On Tue, 13 Nov 2001, George Pitcher wrote:
 
  I don't think that you can nest forms.
 
  George
 
  - Original Message -
  From: De Necker Henri [EMAIL PROTECTED]
  To: PHP-General (E-mail) [EMAIL PROTECTED]
  Sent: Tuesday, November 13, 2001 1:09 PM
  Subject: [PHP] Form's : making me sick!
 
 
   I just want to know how to make a form inside a form get to respond or
   dont make any browser errors?
  
   It looks someting like this :
  
   form
   input type = text
   input type = text
   form
   select onchange = this.form.submit();   //This must
   change the next select values !
   /select
   /form
   select
   //this values must be cahnge
   /select
   /form
  
   Everthing is working fine but i just cant get the two forms to work
   together.If i only can get some ideas on what action,or onchange values to
   change it will be greatfull!
  
  
   --
   PHP General 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: [EMAIL PROTECTED]
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
  --
  PHP General 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: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 
 
 Thank you,
 Steve Maroney
 
 
 
 
 
 -- 
 PHP General 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: [EMAIL PROTECTED]
 



Re: [PHP] Form's : making me sick!

2001-11-17 Thread Steve Maroney

Thats sounds right becasuse anything between form ... /form can only
will be passeed only to one script.

Steve

On Tue, 13 Nov 2001, George Pitcher wrote:

 I don't think that you can nest forms.

 George

 - Original Message -
 From: De Necker Henri [EMAIL PROTECTED]
 To: PHP-General (E-mail) [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 1:09 PM
 Subject: [PHP] Form's : making me sick!


  I just want to know how to make a form inside a form get to respond or
  dont make any browser errors?
 
  It looks someting like this :
 
  form
  input type = text
  input type = text
  form
  select onchange = this.form.submit();   //This must
  change the next select values !
  /select
  /form
  select
  //this values must be cahnge
  /select
  /form
 
  Everthing is working fine but i just cant get the two forms to work
  together.If i only can get some ideas on what action,or onchange values to
  change it will be greatfull!
 
 
  --
  PHP General 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: [EMAIL PROTECTED]


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 PHP General 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: [EMAIL PROTECTED]










Thank you,
Steve Maroney





-- 
PHP General 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: [EMAIL PROTECTED]




[PHP] Form's : making me sick!

2001-11-13 Thread De Necker Henri

I just want to know how to make a form inside a form get to respond or
dont make any browser errors?

It looks someting like this :

form
input type = text
input type = text
form
select onchange = this.form.submit();   //This must
change the next select values !
/select
/form
select
//this values must be cahnge
/select
/form

Everthing is working fine but i just cant get the two forms to work
together.If i only can get some ideas on what action,or onchange values to
change it will be greatfull! 


-- 
PHP General 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: [EMAIL PROTECTED]




Re: [PHP] Form's : making me sick!

2001-11-13 Thread George Pitcher

I don't think that you can nest forms.

George

- Original Message -
From: De Necker Henri [EMAIL PROTECTED]
To: PHP-General (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 1:09 PM
Subject: [PHP] Form's : making me sick!


 I just want to know how to make a form inside a form get to respond or
 dont make any browser errors?

 It looks someting like this :

 form
 input type = text
 input type = text
 form
 select onchange = this.form.submit();   //This must
 change the next select values !
 /select
 /form
 select
 //this values must be cahnge
 /select
 /form

 Everthing is working fine but i just cant get the two forms to work
 together.If i only can get some ideas on what action,or onchange values to
 change it will be greatfull!


 --
 PHP General 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: [EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General 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: [EMAIL PROTECTED]




RE: [PHP] Form's : making me sick!

2001-11-13 Thread PACKER, Steffan

You cannot nest forms however if you set the action to the same page and
submit the entire form to itself, then you can use javascript to change the
action to the eventual target by using an onChange event on the final field:
input type=text name-lastField
onChange=document.formName.action='newAction.cgi'

Hope this helps!
Steffan
-Original Message-
From: De Necker Henri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 1:10 PM
To: PHP-General (E-mail)
Subject: [PHP] Form's : making me sick!


I just want to know how to make a form inside a form get to respond or
dont make any browser errors?

It looks someting like this :

form
input type = text
input type = text
form
select onchange = this.form.submit();   //This must
change the next select values !
/select
/form
select
//this values must be cahnge
/select
/form

Everthing is working fine but i just cant get the two forms to work
together.If i only can get some ideas on what action,or onchange values to
change it will be greatfull! 


-- 
PHP General 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: [EMAIL PROTECTED]


_
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp



DISCLAIMER

Any opinions expressed in this email are those of the individual
and not necessarily the company.  This email and any files 
transmitted with it, including replies and forwarded copies (which
may contain alterations) subsequently transmitted from the 
Company, are confidential and solely for the use of the intended
recipient.  It may contain material protected by attorney-client
privilege.  If you are not the intended recipient or the person
responsible for delivering to the intended recipient, be advised
that you have received this email in error and that any use is
strictly prohibited.

If you have received this email in error please notify the Network
Manager by telephone on +44 (0) 870 243 2431.

Please then delete this email and destroy any copies of it.
This email has been swept for viruses before leaving our system.

Admiral Insurance Services Limited, Cardiff CF10 3AZ



_
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp



RE: [PHP] Form's : making me sick!

2001-11-13 Thread Ashwin Kutty


Couldn't you also make your initial page a php page? So then you would
have onChange as Steffan says but then pass the values to self.php?vars
which would then be used by the php page to fill in the next select with
vars?

Hope that makes sense..

On Tue, 13 Nov 2001, PACKER, Steffan wrote:

 You cannot nest forms however if you set the action to the same page and
 submit the entire form to itself, then you can use javascript to change the
 action to the eventual target by using an onChange event on the final field:
 input type=text name-lastField
 onChange=document.formName.action='newAction.cgi'
 
 Hope this helps!
 Steffan
 -Original Message-
 From: De Necker Henri [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 1:10 PM
 To: PHP-General (E-mail)
 Subject: [PHP] Form's : making me sick!
 
 
 I just want to know how to make a form inside a form get to respond or
 dont make any browser errors?
 
 It looks someting like this :
 
 form
   input type = text
   input type = text
   form
   select onchange = this.form.submit();   //This must
 change the next select values !
   /select
   /form
   select
   //this values must be cahnge
   /select
 /form
 
 Everthing is working fine but i just cant get the two forms to work
 together.If i only can get some ideas on what action,or onchange values to
 change it will be greatfull! 
 
 
 -- 
 PHP General 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: [EMAIL PROTECTED]
 
 
 _
 This message has been checked for all known viruses by the 
 MessageLabs Virus Scanning Service. For further information visit
 http://www.messagelabs.com/stats.asp
 
 
 
 DISCLAIMER
 
 Any opinions expressed in this email are those of the individual
 and not necessarily the company.  This email and any files 
 transmitted with it, including replies and forwarded copies (which
 may contain alterations) subsequently transmitted from the 
 Company, are confidential and solely for the use of the intended
 recipient.  It may contain material protected by attorney-client
 privilege.  If you are not the intended recipient or the person
 responsible for delivering to the intended recipient, be advised
 that you have received this email in error and that any use is
 strictly prohibited.
 
 If you have received this email in error please notify the Network
 Manager by telephone on +44 (0) 870 243 2431.
 
 Please then delete this email and destroy any copies of it.
 This email has been swept for viruses before leaving our system.
 
 Admiral Insurance Services Limited, Cardiff CF10 3AZ
 
 
 
 _
 This message has been checked for all known viruses by the 
 MessageLabs Virus Scanning Service. For further information visit
 http://www.messagelabs.com/stats.asp
 

---
Ashwin
kutty..


-- 
PHP General 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: [EMAIL PROTECTED]




RE: [PHP] Form's : making me sick!

2001-11-13 Thread De Necker Henri

OK.Please give some code that i can work with.I have heared about self.php
but dont have any idea how it works.
I am using php with my two select's but how will i get the first one to
respond to some change?At this stage i just dont have any idea!

-Original Message-
From: Ashwin Kutty [mailto:[EMAIL PROTECTED]]
Sent: 13 November 2001 15:19
To: PACKER, Steffan
Cc: 'De Necker Henri'; PHP-General (E-mail)
Subject: RE: [PHP] Form's : making me sick!



Couldn't you also make your initial page a php page? So then you would
have onChange as Steffan says but then pass the values to self.php?vars
which would then be used by the php page to fill in the next select with
vars?

Hope that makes sense..

On Tue, 13 Nov 2001, PACKER, Steffan wrote:

 You cannot nest forms however if you set the action to the same page and
 submit the entire form to itself, then you can use javascript to change
the
 action to the eventual target by using an onChange event on the final
field:
 input type=text name-lastField
 onChange=document.formName.action='newAction.cgi'
 
 Hope this helps!
 Steffan
 -Original Message-
 From: De Necker Henri [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 1:10 PM
 To: PHP-General (E-mail)
 Subject: [PHP] Form's : making me sick!
 
 
 I just want to know how to make a form inside a form get to respond or
 dont make any browser errors?
 
 It looks someting like this :
 
 form
   input type = text
   input type = text
   form
   select onchange = this.form.submit();   //This must
 change the next select values !
   /select
   /form
   select
   //this values must be cahnge
   /select
 /form
 
 Everthing is working fine but i just cant get the two forms to work
 together.If i only can get some ideas on what action,or onchange values to
 change it will be greatfull! 
 
 
 -- 
 PHP General 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: [EMAIL PROTECTED]
 
 
 _
 This message has been checked for all known viruses by the 
 MessageLabs Virus Scanning Service. For further information visit
 http://www.messagelabs.com/stats.asp
 
 


 DISCLAIMER
 
 Any opinions expressed in this email are those of the individual
 and not necessarily the company.  This email and any files 
 transmitted with it, including replies and forwarded copies (which
 may contain alterations) subsequently transmitted from the 
 Company, are confidential and solely for the use of the intended
 recipient.  It may contain material protected by attorney-client
 privilege.  If you are not the intended recipient or the person
 responsible for delivering to the intended recipient, be advised
 that you have received this email in error and that any use is
 strictly prohibited.
 
 If you have received this email in error please notify the Network
 Manager by telephone on +44 (0) 870 243 2431.
 
 Please then delete this email and destroy any copies of it.
 This email has been swept for viruses before leaving our system.
 
 Admiral Insurance Services Limited, Cardiff CF10 3AZ


 
 
 _
 This message has been checked for all known viruses by the 
 MessageLabs Virus Scanning Service. For further information visit
 http://www.messagelabs.com/stats.asp
 

---
Ashwin
kutty..


-- 
PHP General 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: [EMAIL PROTECTED]

-- 
PHP General 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: [EMAIL PROTECTED]