Button with css

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
avoosh
Forum Commoner
Posts: 27
Joined: Tue Oct 06, 2009 7:30 pm

Button with css

Post by avoosh »

Good morning. I am trying to make a button that uses css. Below I was able to make one of my website buttons work using css. It works but I would apreciate if someone would look at it and tell me if it written correctly.

Code: Select all

$itemTags['submitButton'] = $form->makeSubmitButton($label = ' Buy It Now »', $params = 'class="submitButtonG"');
I am also trying to make the button below use the save css instead of an image but don't want to use a form. Can someone help me with the button.

Code: Select all

$checkout = $URL->makeHref('checkout.php', '', 'SSL');
        $cartTags['checkout'] = $URL->makeLink($checkout, '<img src="' .
        DIR_WS_SKIN_IMAGES .'button_continue.gif" border="0" alt="Checkout" title="Checkout">');

Thank you for your help.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Button with css

Post by pickle »

It looks like you're using an API very few of us would have any experience with.

Also, this isn't security - why post it in the PHP-Security forum? I've moved it to PHP-Code.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply