X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Display a graphic button instead of a form button (https://forum.x-cart.com/showthread.php?t=7871)

GM 06-02-2004 08:48 AM

Display a graphic button instead of a form button
 
I want to display a graphic button in place of this:
Code:

"<TR><TD align=\"center\"><INPUT TYPE=\"Submit\" NAME=\"vote\" VALUE=\" Vote \"></TD></TR>\n";
echo "<TR><TD align=\"center\"></form><form method=post><input type=hidden name=vresult value=1><INPUT TYPE=\"Submit\" NAME=\"result\" VALUE=\"Result\">\n";
echo "</TABLE></form>";

How would I do it?

Emerson 06-02-2004 08:59 AM

Try...

Quote:

"<TR><TD align=\"center\"><INPUT TYPE=\"Submit\" NAME=\"vote\" VALUE=\" Vote \"></TD></TR>\n";
echo "<TR><TD align=\"center\"></form><form method=post>
<input type=hidden name=vresult value=1>
<INPUT TYPE=\"image\" NAME=\"result\" src=\"images/submit.gif\" width=\"10\" height=\"10\" border="0" alt=\"ALT Text\"> \n";
echo "</TABLE></form>";

GM 06-02-2004 04:29 PM

WOW!, I wasn't expecting such a fast response 8O I'll give it a try, Thanks Emerson :wink:

[UPDATE] parse error, expecting `','' or `';'' in line 40

line 40=
Code:

<INPUT TYPE=\"image\" NAME=\"result\" src=\"skin1/images/submit.gif\" width=\"48\" height=\"19\" border="0" alt=\"ALT Text\">\n";

It's somewhere in here
Code:

" border="0" alt=\"ALT Text\

GOT IT!
Code:

border=\"0\" alt=\"ALT Text\


All times are GMT -8. The time now is 09:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.