Adding a 'Submit' button to my Newsletter link to PHP file

Discussion in 'PHP' started by bad_bob00, Jul 26, 2007.

  1. #1
    Hi there,

    I've got a little PHP script which allows people to sign up as a newsletter subscriber from a link on my website.

    On the website I have the space for them to type their e-mail address, but I have no 'submit' button. It works if you press the enter key, but I doubt everyone will realise this.

    Is there a way of adding a small button for people to click, which signs them up to the newsletter?

    The example of the problem is at ;
    http://www.sitstaygoplay.com/ (scroll down, its on the right).


    Thanks for any help.
    Matt
     
    bad_bob00, Jul 26, 2007 IP
  2. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #2
    You can just add a button with 'ok' text and also reduce width of the input box.
     
    YIAM, Jul 26, 2007 IP
  3. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #3
    How would I add a button with the text?

    Sorry, I am clueless when it comes to PHP.


    Thanks for any help.
    Matt
     
    bad_bob00, Jul 26, 2007 IP
  4. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #4
    add
    <input value="OK" type="submit">
    after the following line
    <input name="Email" id="Email" size="15" maxlength="50" type="text">

    If you want to reduce the input box width then change size value in the above line.
     
    YIAM, Jul 26, 2007 IP
    bad_bob00 likes this.