TipLib Computer Forums  
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
agoikhmanOffline
14 Post subject: Another function for HTML class  PostPosted: Aug 07, 2006 - 06:15 PM



Joined: Aug 07, 2006
Posts: 1

Status: Offline
Simple yet very useful. I started to use this function to put sql result sets into html select box. Thank you. I also added function print_input to this class:

Code:
function print_input($name, $value="", $input_type="TEXT", $js="", $size="", $maxlength="", $checked="", $dsbl="") {

   if (!empty($checked))
      $checked = " " . $checked;

   print ( "<INPUT TYPE=\"" . $input_type . "\" NAME=\"" . $name . "\"" . $checked );

   if ( $value != '' )
      print (" VALUE=\"" . $value . "\"");

   if ( !empty($size) )
      print (" SIZE=\"" . $size . "\"");

   if ( !empty($maxlength) )
      print (" MAXLENGTH=\"" . $maxlength . "\"");

   if ( !empty($dsbl) )
      print (" DISABLED ");

   print ($js . ">\n" );   

}
 
 View user's profile Send private message  
Reply with quote Back to top
h8dk97Offline
Post subject: RE: Another function for HTML class  PostPosted: Aug 08, 2006 - 11:42 AM



Joined: Jan 22, 2006
Posts: 4

Status: Offline
Thanks for your feedback. You can add your function to the knowledge base if you like, that way it will be easier for other people to find it if they are looking for something similar.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic