Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Server-side Scripting _ HTML Help

Posted by: dgtotkov Apr 5 2018, 08:20 AM

I have this HTML code which displays 3 drop down boxes and a submit button (image attached):

I want to be able to take the 3 inputs and output a known value based on the 3 drop down list selections.

Can anyone suggest what functions I should use to process the input from the 3 drop down lists and display a pre-assigned outcome?

Thank you,

Current code:


<form action="/action_page.php">
<select name="Parents">
<option value="1 Parent">1 Parent</option>
<option value="2 Parents">2 Parents</option>
<select name="Children">
<option value="1 Kids">1 Child</option>
<option value="2 Children">2 Children</option>
<option value="3 Children">3 Children</option>
<option value="4 Children">4 Children</option>
<select name="Membership">
<option value="1 Month">1 Month</option>
<option value="3 Months">3 Months</option>
<option value="12 Months">12 Months</option>
<input type="submit">

Attached thumbnail(s)
Attached Image

Posted by: pandy Apr 5 2018, 08:49 AM

HTML has no functions and HTML can't do that such things. You need to use a programming language.

Posted by: Christian J Apr 5 2018, 09:02 AM

<form action="/action_page.php">

The above hints at a PHP script, how familiar are you with that?

Probably you'd need IF/ELSE forks or similar to process the different alternatives.

Posted by: pandy Apr 5 2018, 09:07 AM

Oops. blush.gif

I move this to the server side scripting forum then.

Posted by: pandy Apr 5 2018, 09:09 AM

Had you already moved it, Christian? I got an error when I tried to and here the topic is.

Posted by: Christian J Apr 5 2018, 10:08 AM

Yes I moved it.

Posted by: pandy Apr 5 2018, 09:22 PM

I see now are posts were only a few minutes apart. That explains it.

Powered by Invision Power Board (
© Invision Power Services (