User Profile
Collapse
-
Or anyone else that understands in this matter. -
Zorgi or code green, would you guys be able to help me understand how to get a Multiple Yes or No Question in HTML to work with the array I built using selective questions if chosen " no or "yes" to show the output on the array following another question
to display anything on the array?
I think this would solve the problem, if the List function /array is the way to go for Yes or No, then multiple questions based on yes...Leave a comment:
-
I think I may have got it.
Could I use this or is there another easier way to do this?
Example 1 question depending on answer ask another question and so on.
...Code:>?php $my_array = array("My Question #1 ","My Question # 2"," No question-blanks"); list($a, , $c) = $my_array; echo "Here I only use the $a and $c variables."; ?>Leave a comment:
-
Thanks, for that , that was a typo too. I'm just not good at details :) I do have the script working just fine,my problem is that I'm trying to incorporate if you choose "NO" on the radio button, I'd like for a HTML/PHP to show another "Text" or "Ask " another question. I'm thinking about a list function. But it did not work, how I wanted it to. Perhaps I don't know what function it suitable for what I am trying to...Leave a comment:
-
Thanks for correcting that. Is there a way to hide a question in HTML?Leave a comment:
-
I'm not exactly sure to ask the 2nd question in HTML or I guess to hide it
[code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html>
<head>
<form form action="help.ph p" method="post">
<form>
<b>Would you like to help...Leave a comment:
-
does that make any sence?
I'm just trying to ask a question if value" NO" then SHOW " another question"
if YES or NO then display $whatever value.....
I would only like the second question to display only if you selected "NO" so it will need to hide. Is this possible with PHP ? or do I need a JAVA script?Leave a comment:
-
well, sorry about this, I failed to mention that I would like to have a multiple question. Would be like this.
Thanks for helping, please choose 2 options
Yes or no.
Then post :...Leave a comment:
-
-
If yes then echo this, if no echo that in PHP-simple array?
Hello,
Can anyone help me complete this? Is this an array?
I have an HTML file that will have a radio button and a text inputCode:<?php $Choice1 = $_POST['Choice1']; $Choice2 = $_POST['Choice2']; $Nothing = $_POST['Nothing']
that looks like this.
If yes, post choice 1
if no, post choice 2.
If left blank show nothing........
No activity results to display
Show More
Leave a comment: