Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Login Textareas style


timmaggs

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...