This might sound stupid but I am looking for a simple subscribe button for my site, I have tried building one in ID but did not have much success, I've looked on the net but most sites seem to be leading you some where else, and I'm not sure about the rest, can any one help please thanks Jeff Lane
Subscribe for what exactly -- a newsletter, download link, private log-in page, membership site?
A form button is pretty simple to create. But what it does depends on what is inside your form-processing script.
<form name="input" action="path/form-processing-script.php" method="get">
Username: <input type="text" name="user">
<input type="submit" value="Submit">
Hi Nancy Thanks for answering, the button is to be used for a newsletter I want it to be 90px wide X 28px high it is to send people to my Aweber sign up page, and I want it to be next to my Contact, Facebook & twitter links just above my spry bar at the bottom of my banner, I would like it to be the same orange as the spry bar but look different. Thanks Jeff
There are lots of ways to do this. But this is probably the simplest.
Insert code between your Twitter and Facebook links (or wherever you want this to appear).
<input type=button onClick="location.href='http://google.com'" value='Newsletter' style="color:#000; background:#F90; font-size:12px; cursor:pointer">
Change http://google.com to your actual AWeber page.
Hi David thank you for that, I went to the link good choice, I chose the first one CSS Trick, I went to the demo its great I’m able to make buttons, down loaded it made a button, only thing there is not much in the way of instruction, I can see how to get the CSS, but there’s no HTML, I am obviously missing something simple here, can you help please. Thanks Jeff
Your code got badly mangled. Replace this:
<input name="Button" style="color:#000; background:#F90; font-size:12px; cursor:pointer" onclick="location.href='../subscribers.php" type="button">'" value='Newsletter'>
<input name="Button" style="color:#000; background:#F90; font-size:12px; cursor:pointer" onclick="location.href='subscribers.php'" type="button" value="Newsletter">
Note: No leading dots or slash on 'subscribers.php'. Include links are relative to the parent page; not the include file. Also, double quotes must be wrapped around attribute values.
For a more consistent look, you might want to use the Button for your 'Contact Us' link, too.
Hi Nancy I have got it to work now by using the full URL with the page extension work fine but I am getting three errors when I validate all on line 64.
I know some people don’t worry about error but if you let one or two go it soon becomes dozens. Hope you can help Jeff.
Hi Nancy I’ve done that but I still have these two
Validation Output: 2 Errors
1. Error Line 64, Column 19: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
FAQ item on valid flash.
I found this explanation:
This is his example button from link above.
(view demo source code). <- In IE go to View> Source
<a href="#" class="button blue">Button</a>). The CSS classes can be applied to any element such as link, p, span, div, input, button, etc.
Hi Nancy I have managed to sort it, by splitting it, I left the HTML in the HTML just added (input.c3) and moved the CSS to the CSS file and it works with no validation problems, thanks for your help, and thanks again for the button I love it. Jeff