Looking for a small bit of help

Discussion in 'HTML & Website Design' started by Aquinas, Feb 15, 2008.

  1. #1
    Hi,

    I only have one problem and I cannot figure it out.

    I want to put in a link and a box that will allow customers to subscribe to offers by email.

    But because of the colours I am unable to add them in.

    Would anyone be able to help, i cannot seem to find any code that will make a box that customers can add in their email address and "subscribe by email"


    Looking forwards to all reply's

    Thanks
     
    Aquinas, Feb 15, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi Aquinas,

    You're going to want to use a form for this which will contain a fieldset, legend, label, and two inputs that will be tied into a server-side programming script that processes the form when it's submitted. What server-side languages are installed on your server?

    Here's how the HTML code would look. Note that I didn't style it since I don't know what your page looks like (but the code will work as long as you tie it to a form).

    
     <!-- if using an XHTML DOCTYPE, replace <br> with <br />, and <input> with <input /> but keep the contents of the INPUT element intact -->
    <form action="#" id="subscription-form" method="post">
    	<div class="fieldset">
    		<fieldset>
    			<legend><span>Subscribe via Email</span></legend>
    			<label for="subscriber-email">Enter Your Email Address:</label><br>
    			<input id="subscriber-email" name="subscriber-email" size="25" type="text">
    			<input class="submit" type="submit" value="Subscribe">
    		</fieldset>
    	</div>
    </form>
    
    Code (markup):
    If you would like to learn why I have an extra DIV and SPAN inside the form, please read John Faulds' wonderful article, The Legends of Style.
     
    Dan Schulz, Feb 15, 2008 IP