timmaggs Posted December 30, 2005 Share Posted December 30, 2005 I want to change the style of the textboxes on my login.php page, I have a CSS style already ready to do the job but I do not know how to connect the two because the textbox is created using PHP. The code reads: <?php echo tep_draw_input_field('email_address'); ?> The class I want to assign to it is called "search_box" and in normal HTML it would be easy by writing: <input name="textfield" type="text" class="search_box" width="100" height="20"></input> But I canot seem to work out away of adding the class in php... how do I change the "tep_draw_input_field"? Thanks, Tim Link to comment Share on other sites More sharing options...
tina_boots Posted December 30, 2005 Share Posted December 30, 2005 I want to change the style of the textboxes on my login.php page, I have a CSS style already ready to do the job but I do not know how to connect the two because the textbox is created using PHP. The code reads: <?php echo tep_draw_input_field('email_address'); ?> The class I want to assign to it is called "search_box" and in normal HTML it would be easy by writing: <input name="textfield" type="text" class="search_box" width="100" height="20"></input> But I canot seem to work out away of adding the class in php... how do I change the "tep_draw_input_field"? Thanks, Tim The best way to figure out what it is you need to change in regards to styles, I've found is to open the page in your browser and then view > source. That way you are looking at the rendered HTML without having to sort out the PHP. In regards to styles, unless you are adding a new one, generally you can make all of those changes in the style sheet itself without having to modify any PHP code. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes. Link to comment Share on other sites More sharing options...
timmaggs Posted December 30, 2005 Author Share Posted December 30, 2005 Yes, I have already seen whats coming out the other end from the source, This goes in: <?php echo tep_draw_input_field('email_address'); ?> And This Comes Out: <input type="text" name="email_address"> How can I edit what comes out of the other end? Tim ;) Link to comment Share on other sites More sharing options...
Nacer Posted December 30, 2005 Share Posted December 30, 2005 tep_draw_input_field() is defined in /includes/functions/html_output.php arround line 160. Regards, Nacer. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.