Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need help with processing forms

New Here ,
Jan 14, 2010 Jan 14, 2010

Hello,

I have a simple form that people use to vote with.  It has two questions, each with 3 radio buttons.  i.e.:

What is your favorite color?

Red

Blue

Green

What is your favorite pet?

Dog

Cat

Fish

I have no trouble building the form itself but how do I get the data?  I know I can use the "mailto" function on the submit button but do I really want to sort through and count 100 different emails?  I have searched and read TONS of different turtorials on this and can't figure out how to collect the votes.

Can someone please point me in the correct direction?  Should I be using PHP, ASP???

I admit, while I can build the form, I have never delved into the other side of this so I am LOST!

I posted this elsewhere and someone suggested to post it here so here I am.  I have since read that ASP is dying so I guess I won't go that route.

Thank you.

TOPICS
Server side applications
517
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 14, 2010 Jan 14, 2010

Can someone please point me in the correct direction?  Should I be using PHP, ASP???

Yes, you'll need a server-side script (PHP, ASP, ColdFusion, ...) to process the form data and send the results to you:

<form id="survey" name="survey" method="post" action="process_survey.php">

...

/form>

Of course, it implies your server must support a server-side technology

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 17, 2010 Jan 17, 2010

Yes, you'll need a server-side script (PHP, ASP, ColdFusion, ...) to process the form data and send the results to you:

<form id="survey" name="survey" method="post" action="process_survey.php">

...

/form>

I HAVE that information in there, someone also mentioned making sure that my file extention is php.  Is that for BOTH files (the form and the form_process) or just the form_process?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 17, 2010 Jan 17, 2010
LATEST

Only pages that contain php code need to have a php extension. That means the page with the processing script for sure. It doesn't exclude the form page but I would guess that you have not added any php script to the form page itself. If that's the case, then it does not need a php extension. If it is not working, then you need  to provide more details, starting with any error message you are getting. You should also post the script.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines