Skip to main content
Participant
April 3, 2017
Answered

I have created an HTML form...

  • April 3, 2017
  • 5 replies
  • 458 views

I have created an HTML form in Dreamweaver CC 2015. I'm lost as to how I make that form function. I would like to have the form list the answers in one file I can retrieve. Do I need to add a script to my website or form? Just lost as to what I need to do next or what to search????????

[Moved from non-technical Lounge Forum to specific Program forum... Mod]

[Here is the list of all Adobe forums... https://forums.adobe.com/welcome]

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer Nancy OShea

    If your server supports PHP code & the PHP mail () function, work through this 3-part tutorial to create a responsive contact form. 

    Alt-Web Design & Publishing: Responsive Contact Form with Bootstrap 3.2 and PHP (Part 1)

    This form & script has multiple advantages in that it checks for valid form field entries & gives feedback to users, it hides your email address from robot harvesters, sanitizes data and thwarts exploits from spam bots and would-be hackers.  

    Post back if you have any questions.

    PS. If your server does not support PHP and PHP mail (), ask your host which scripts you can use.

    Nancy

    5 replies

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    April 3, 2017

    If your server supports PHP code & the PHP mail () function, work through this 3-part tutorial to create a responsive contact form. 

    Alt-Web Design & Publishing: Responsive Contact Form with Bootstrap 3.2 and PHP (Part 1)

    This form & script has multiple advantages in that it checks for valid form field entries & gives feedback to users, it hides your email address from robot harvesters, sanitizes data and thwarts exploits from spam bots and would-be hackers.  

    Post back if you have any questions.

    PS. If your server does not support PHP and PHP mail (), ask your host which scripts you can use.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Participant
    April 3, 2017

    Thx Nancy ... reading now.

    Rob Hecker2
    Legend
    April 3, 2017

    A web form is made with HTML, but HTML cannot process the form. For that you need javascript or PHP. Normally the form data is either emailed somewhere or put in a database. You could also have a file on your server updated with the form responses--in a text format or XML.

    Probably the easiest method is to use PHP to have the form responses emailed to you.

    Participant
    April 3, 2017

    Thank you Rob, I have found the information you posted but I cant find the needed javascript or PHP and where do I put it? I assume there are samples or generics somewhere on the web. Also do I put it on my html form page or on my server?

    This is a simple form that collects user name and 6 choices from drop down lists. I would like responses in one text delimited file that I can retrieve once all have entered.

    Rob Hecker2
    Legend
    April 3, 2017

    I always store my form data in a database.

    Here is a stackoverflow exchange that has a simple example that should work. Look at the response #25

    http://stackoverflow.com/questions/14998961/php-write-file-from-input-to-txt