SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need help on form processing

    hi
    i've just started designing websites and i'm getting good at it.
    but unfortunately i do'nt know much about web developement.
    i want to make a dynamic web page with a form where people can fill it and send it.
    as i was reading dreamweaver's manual i found out that there are some ways to recieve those data.
    it can be emailed to you or written in an onsite file or in a database.
    my question is: how can i actually do the above tasks? i mean is there an easy to use software or template for it? i think having a file instead of a database is really great for me because i know nothing about databases.if it is true please let me know and please if it is possible mention the app or code suitable for that.
    which host do you think better serves this:asp or php supported?
    please let me know of any related info not mentioned
    thank you very much.

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    You'll need a formmail script to receive the form submission and send the email. ASP and PHP can both do this but I think you'll find far more available for PHP then for ASP out there.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Location
    Cheshire, UK.
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've just spent the past 2 hours trying to get a formmail cgi script to work.
    It's a bit confusing at first but your web host should be able to point you in the right direction.

  4. #4
    SitePoint Member
    Join Date
    Jan 2007
    Location
    United Kingdom
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi there,

    Here are two simple options for you;

    1 - Make a form and have the form direct to a sendmail script which sends an email directly to you and cuts out the use of a database or file store.

    2 - Make a form and have the form do two things; save the submited form into an unprotected text file and also email you the contents.

    And if it is sensitive data that is being sent through the form, then you want to use something like a MySQL database to store the submitted contents.

    Many scripts over at www.hotscripts.com that could do this. Or if you fancy making your own simple sendmail script then follow this simple guide: http://www.thesitewizard.com/archive/feedbackphp.shtml

    Hope it helps. Any problems, feel free to get in touch.
    Gary

  5. #5
    SitePoint Zealot
    Join Date
    Sep 2006
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The sendmail script would look something like the following:
    PHP Code:
    <?php

    $nameofformelement 
    $_REQUEST['nameofformelement'];

    mail"email@example.com""SUBJECT OF E-MAIL",
    $nameofformelment
    enter your results with your main message here
    "FROM: FROMEMAIL" );
    header"Location: http://www.example.com/wheretogonext.htm");
    ?>
    You can save that as 'sendmail.php' and set your action property of the form tag to 'sendmail.php'
    Last edited by ChrisGilmore; Jan 17, 2007 at 13:42.


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
  •