I have a drop down selection menu on an HTML form.
I want to display 1 answer, for a few selection options.... and another answer for the rest of the options.
Example code is below: - How Much Are You Worth In Total Assets (Savings, Equity, Stocks, 401K, Car, Home, Anything of Value, etc...)?
-
<select name="assets">
-
<option value="$0 - $15K">$0 - $15K</option>
-
<option value="$15K - $50K">$15K - $50K</option>
-
<option value="$50K - $100K">$50K - $100K</option>
-
<option value="$100K - $200K">$100K - $200K</option>
-
<option value="$200K - $400K">$200K - $400K</option>
-
<option value="$400K - $700K">$400K - $700K</option>
-
<option value="$700K - $1M">$700K - $1M</option>
-
<option value="$1M+">$1M+</option>
-
</select>
-
Those would be the choices. Now here is my PHP code... I cannot get it work. -
<?php
-
if ($answer=="$variable1, $variable2, $variable3, $variable4, $variable5, ($assets == $0 - $15K || $assets == $15K - $50K)")
-
echo "You should consider getting $100000K in coverage";
-
-
etc..etc...
-
I want to display the answer here, if they picked either of those 2 asset options (in the string). What am I doing wrong?
0 1267 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: ALI |
last post by:
hi
i need some best answer's for this question for interview as an oracle (DBA).
Q : what is the most difficult situation u faced and how did u solved it ????
i really appriciate if some body helps me .
thanks
|
by: Vandana Rola |
last post by:
Hello Everyone,
I am a beginner in Javascript.I want to create fun quiz tool using
javascript (no database). The feature of that tool is every question
has five choices. The user needs to select three best choices. If they
do, a message window pops up which says good choices or something and
take them to next question. If they don't choose all of the best
choices they get another message like try again but these are not the
best choices...
|
by: Ray |
last post by:
I just have a brief idea of this approach and would like to hear a few words
from experts here. I have medium level of programming in Access. In fact,
I would like to build a simple database to replace a spreadsheet showing the
scores of the suppliers. Initially, I need to build a form like multiple
choice Q & A sheet for the judges to input the scores and then generate a
report showing the score of each element and total score like the...
|
by: Rik Brooks |
last post by:
My boss has put a couple of restraints on me that has me tearing out my hair.
Here is my problem.
On a particular asp page I need to use server side controls so that I do
some fairly complex logic in C#.
There is a background graphic that needs to stay in place and a big empty
area where my result set is displayed. In other words, the page cries out for
frames but my boss won't hear of that. No frames at all.
|
by: C++ Hell |
last post by:
Hey everyone just designing a quiz for school and managed to write the
code for the questions and answers thou i have to add scores and at the
end an overall score does anyone have any idea what to do or what i am
talkin about
| |
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of
attending interviews. If you own a company best way to judge if the
candidate is worth of it.
http://www.questpond.com/InterviewRatingSheet.zip
|
by: Night Air |
last post by:
I have problem with a website that collects user responses to multiple
choice questions. The users choose and value from a Radio Button, then
click on a Next button to go the next page.
The problem occurs when users click on the Next button too quickly.
For example, when you click a few times, in rapid succession, even thought
the pages are not displayed between the first and the page you arrive at,
the same multiple choice response...
|
by: Gq |
last post by:
I need a short script for multiple video play on my space,, if
possible - ( PHP or java, or even HTML.)
can anyone help me ?
Thanks
|
by: pefok |
last post by:
Hello everyone,
One of my course works is to implement a java based quiz system. the program consists of two modules one for the teacher to create, set questions , answers and the number of questions to be published, and the other one is to allow the student to run the quiz. the data for the quiz is stored in text files and the correct answers are encrypted. everytime the students take a quiz the result has to be stored and a report...
|
by: mb60 |
last post by:
sir
In my database I have one column for question. Four columns are meant for options 1,2,3,4. The 5th column is YES/NO column.
The answers for the questions are entered into 5th column by a option box.
Now I would like to print a report with the questions and correct answers which are present in the 1,2,3,4 columns.
Example
Q) aaaaaaaaaaaaaaaaa
1) bbbbbbbb 2) cccccc 3) ddddd 4) eeeeeee
answer = 2
I would like to have the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |