Re: [PHP] Problem regarding select boxes

2001-09-11 Thread David Robley

On Tue, 11 Sep 2001 17:35, Balaji Ankem wrote:
> Hi! friend,
>I had one html form .
>In that i had 5 inputs.
>First  input  is a select box.
>If the selected item in first input is Mobile then only i want to
> display  second and third input boxes. Otherwise i want to hide those
> two options.



I think you only just posted this an hour ago - and there has been at 
least one answer since. How about waiting a little while for a response. 
Not everybody is just sitting there ready and waiting to solve your 
problem.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Mary had a little RAM -- only about a MEG or so.

-- 
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] Problem regarding select boxes

2001-09-11 Thread Balaji Ankem



Hi! friend,   I had one html form 
.   In that i had 5 inputs.   First  input  is 
a select box.   If the selected item in first input is 
Mobile then only i want to display  second andthird 
input boxes. Otherwise i want to hide those two options.How can i endure 
that?Please give the solution to this problem.Here i am sending 
the 
file..>>>content="120;URL=http://localhost/imac/addinventory.php">


function check(){

  if(document.addinv.inv_name.options[0].selected)
   {
   alert('Please select the item name');
   document.addinv.inv_name.focus();
   return false;
  }
  else if(document.addinv.inv_type.options[0].selected)
   {
   alert('Please select the item type');
   document.addinv.inv_type.focus();
   return false;
  }


  else if (document.addinv.inv_tag.value=='' ||
document.addinv.inv_tag.value=='0')
  {
alert('Inventory tag is required and it must start with
alphabet.Please try again');
document.addinv.inv_tag.focus();
return false;

  }


  else
  { document.addinv.method = "POST";
document.addinv.action="add_inv.php";
document.addinv.submit();
return true;
  }
   }

   ADD INVENTORY ITEM      TIME STAMP:   Item Name :     SELECT  Mobile  SIM  Data Cable  Charger  Power SupplyItem Type:      SELECT   PTX520   PTX438   J5   J6   Z5   IMEI Number Item Tag    Status     SELECT    STOCK    IN USE      If  Item name is Mobile then only we can enter type and IMEI...otherwise iwant to hide and i will insert blank values in to the database.please help out me. Thanks in advance.Regards-Balaji -- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail from your records. - -- 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] Problem regarding select boxes

2001-09-11 Thread nayco

Try something like

< script language="JavaScript">
if (inv_name.value=='mobile')
{
inv_imei.style.visibility=visible; .

based on CSS and JS !!!
but this is VERY fast written and may only work on IE, not NS .



(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


- Original Message -
From: Balaji Ankem <[EMAIL PROTECTED]>
To: Renze Munnik <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 11, 2001 9:05 AM
Subject: [PHP] Problem regarding select boxes


> Hi! friend,
>I had one html form .
>In that i had 5 inputs.
>First option is a select box.
>If the selected item is Mobile then only i want to display  second and
> third input boxes. Otherwise i want to hide those two options.
>
> How can i endure that?
>
> Please give the solution to this problem.
>
> Thanks and regards
> -Balaji
>
> Here i am sending the file..
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> 
> 
> 
>  content="120;URL=http://localhost/imac/addinventory.php";>
>
>
> 
>
>
> function check(){
>
>   if(document.addinv.inv_name.options[0].selected)
>{
>alert('Please select the item name');
>document.addinv.inv_name.focus();
>return false;
>   }
>   else if(document.addinv.inv_type.options[0].selected)
>{
>alert('Please select the item type');
>document.addinv.inv_type.focus();
>return false;
>   }
>
>
>   else if (document.addinv.inv_tag.value=='' ||
> document.addinv.inv_tag.value=='0')
>   {
>  alert('Inventory tag is required and it must start with
> alphabet.Please try again');
>  document.addinv.inv_tag.focus();
>  return false;
>
>   }
>
>
>   else
>   { document.addinv.method = "POST";
>  document.addinv.action="add_inv.php";
>  document.addinv.submit();
>  return true;
>   }
>}
>
> 
> 
>
> 
>
>  ADD INVENTORY ITEM 
>  
>
> 
>
>TIME STAMP:  
>  
>
>  Item Name :
>  
>
> SELECT
>   Mobile
>   SIM
>   Data Cable
>   Charger
>   Power Supply
>
> 
>
> Item Type:
>   
>
> SELECT
>PTX520
>PTX438
>J5
>J6
>Z5
>
>   
>
>
>  IMEI Number
>
>  Item Tag   
>
>  Status 
> SELECT
> STOCK
> IN USE
> 
>
>   
> 
> 
> 
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> If  Item name is Mobile then only we can enter type and IMEI...otherwise i
> want to hide and i will insert blank values in to the database.
>
>
> Thanks in advance.
>
> Regards
> -Balaji
>
>






> --
> 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]




[PHP] Problem regarding select boxes

2001-09-10 Thread Balaji Ankem

Hi! friend,
   I had one html form .
   In that i had 5 inputs.
   First option is a select box.
   If the selected item is Mobile then only i want to display  second and
third input boxes. Otherwise i want to hide those two options.

How can i endure that?

Please give the solution to this problem.

Thanks and regards
-Balaji

Here i am sending the file..

>>>




http://localhost/imac/addinventory.php";>





function check(){

  if(document.addinv.inv_name.options[0].selected)
   {
   alert('Please select the item name');
   document.addinv.inv_name.focus();
   return false;
  }
  else if(document.addinv.inv_type.options[0].selected)
   {
   alert('Please select the item type');
   document.addinv.inv_type.focus();
   return false;
  }


  else if (document.addinv.inv_tag.value=='' ||
document.addinv.inv_tag.value=='0')
  {
 alert('Inventory tag is required and it must start with
alphabet.Please try again');
 document.addinv.inv_tag.focus();
 return false;

  }


  else
  { document.addinv.method = "POST";
 document.addinv.action="add_inv.php";
 document.addinv.submit();
 return true;
  }
   }






 ADD INVENTORY ITEM 
 
   


   TIME STAMP:  
 

 Item Name :
 

SELECT
  Mobile
  SIM
  Data Cable
  Charger
  Power Supply



Item Type:
  

SELECT
   PTX520
   PTX438
   J5
   J6
   Z5

  


 IMEI Number

 Item Tag   

 Status 
SELECT
STOCK
IN USE


  






If  Item name is Mobile then only we can enter type and IMEI...otherwise i
want to hide and i will insert blank values in to the database.


Thanks in advance.

Regards
-Balaji




--
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers
and is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
-



-- 
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]