SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member theimbecility's Avatar
    Join Date
    Oct 2003
    Location
    chicAgo
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    making a "submit" form

    i want to put a form on my website- ya know, like name, email, comments, then you hit submit and it emails it to me or something. ive looked in quite a few places, and i found lotsa cool stuff to do with the form, but no codes for the form itself- very frusterating. im not really sure if this is html or javascript though, so ima post it in both places. HELP!!!

  2. #2
    Under Construction Poop_Shoot's Avatar
    Join Date
    Jul 2003
    Location
    Sacramento, CA
    Posts
    330
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It cant be done with javascript it must be done with a serverside language like perl, php or asp!

  3. #3
    SitePoint Member theimbecility's Avatar
    Join Date
    Oct 2003
    Location
    chicAgo
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    could i do it with html by any chance???

  4. #4
    SitePoint Member theimbecility's Avatar
    Join Date
    Oct 2003
    Location
    chicAgo
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually that doesnt make much sense so nevermind- how do i make it with severside language? ive never used that before

  5. #5
    Under Construction Poop_Shoot's Avatar
    Join Date
    Jul 2003
    Location
    Sacramento, CA
    Posts
    330
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure you could look here for a script or some help http://www.hotscripts.com !

  6. #6
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Visit the PHP Forum here at SPF

  7. #7
    SitePoint Enthusiast tapdig's Avatar
    Join Date
    Sep 2003
    Location
    Norman, OK
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <form action="cgi-bin/someperl.cgi" method="post">
    <
    b>Mailing List sign up:</b
    <
    br>Name:<input type="text" name="name" size="18" maxlength="50" value="">
    <
    br>Email:<input type="text" name="address" size="18" maxlength="50" value="">
    <
    br><b>Subscribe</b>
    <
    input type="radio" name="action" checked value="subscribe">
    <
    b>Unsubscribe</b>
    <
    input type="radio" name="action" value="unsubscribe">
    <
    br>Comments:<textarea cols="40" rows="5" name="comment"></textarea>
    <
    input type="submit" value="GO!">
    </
    form
    I think this answers your question about the "form itself". That's basic HTML for you, no javascript or CSS (add at your own risk). Examples for text fields, radio buttons and a textarea. Get help on the perl forum for how to send an email to yourself or store the data in a file, using the file "someperl.cgi" referenced above. This HTML is just the front end. It won't "do" anything when a visitor clicks "Go!" until you have the backend (perl/PHP/whatever) to process the inputs and "do" something with it. Hope that helps.


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
  •