SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Location
    New York City
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Forms question...

    I would like to have a simple form on my home page where a visitor can sign on for a free eproduct, newsletter, etc.

    The visitor signs on (name and email address), clicks "Submit", and then is automatically given a url where the e-thing can be downloaded from where it's stored.

    My question is, how do I write the code (HTML, CSS or JS) from beginning to end?

    Thanks.
    FEV1/FVC,FEF25-75,VT,VE,VA,TLC,FRC,IC,ERV,RV,ABG,FIO2,FICO2
    www.youcanreadebooks.com
    www.theofficialyourcreditsucks.com
    www.myspace.com/tt_smart

  2. #2
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,727
    Mentioned
    43 Post(s)
    Tagged
    0 Thread(s)
    Wooooo!!... Okay, step by step...


    1. You'll need to make the HTML form into which viewers will enter their data.
    If you use DreamWeaver or FrontPage, I'm sure that's easy enough to do... but I'd suggest you type it by hand, and you can get a great tutorial on HTML forms here...

    http://www.yourhtmlsource.com/forms/
    http://www.yourhtmlsource.com/forms/basicforms.html

    ...reason for typing it by hand is to properly give your <input> tags id's and names. FrontPage is a bit goofy with forms and DreamWeaver is a bit confusing (in my opinion).


    2. Now here's the fun part. The "programming"...

    There are two stages here... The first stage is to take the data from the HTML form. The two easiest web-programming languages according to popular opinion are ASP and PHP. ASP runs on Windows servers. PHP runs on Apache. Here are some tutorials for each...

    PHP - http://www.w3schools.com/php/php_forms.asp
    ASP - http://www.w3schools.com/asp/asp_inputforms.asp


    3. And THEN once you have taken the data from the form, you'd have to e-mail the necessary info to yourself and that would take a bit more programming...

    PHP - http://www.sitepoint.com/print/advanced-email-php
    ASP - http://www.tutorialized.com/tutorial...il-Object/1620


    4. Lastly, you may want to store the viewers' data in a database, but we'll cross that bridge when you come to it. It's a bit more complicated than everything else so far described.


    So anyways... that's it in a nutshell. You have lots of reading and Googling to do and I suggest you get started.

    It's not really that hard to do, but if you're now learning it may be quite a handfull to grasp.

    Just remember if you get stuck during any of these stages, you can always post a question here on SitePoint and someone will surly help you out.

    Good luck.

  3. #3
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good answer by Shaun - it's not something where someone can give you the code from a-z - it's not as easy as you think.

    If you can't get a programmer to do it for you - maybe take a look at www.hotscripts.com you may find something there that's out of the box or that you can tinker with to get it to work .

    This may also be of some use: (commercial though)
    http://www.vibralogix.com/linklokurl/

    their demo actually works pretty much as your requirements....

    Nadia

  4. #4
    SitePoint Member
    Join Date
    Aug 2006
    Location
    New York City
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mucho gracias to you both.
    - Stickyfingers
    FEV1/FVC,FEF25-75,VT,VE,VA,TLC,FRC,IC,ERV,RV,ABG,FIO2,FICO2
    www.youcanreadebooks.com
    www.theofficialyourcreditsucks.com
    www.myspace.com/tt_smart

  5. #5
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,727
    Mentioned
    43 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stickyfingers
    Mucho gracias

    "MuchAS"

    You're welcome, dude.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •