Hey, I’m trying to setup a form where certain options are hidden and depend on what your choice is to display the next question. Here is what I have so far. I could really use some help with this.
index.php
[code]<?php
$logo = $_POST[‘logo’];
?>
Site Type <?php foreach($site_type as $value => $name) { echo ''.$name.''; } ?> |
Number of Pages <?php foreach($site_pages[0] as $s) { echo ''.$s.''; } ?> |
Logo <?php foreach($logo_choice as $l) { echo ''.$l.''; } ?> <?php if($logo == 'yes') { ?> <?php foreach($logo_con[0] as $c) { echo ''.$c.''; } ?> <?php } ?> |
info.php
<?php
//The type of site the customer wants
$site_type = array("Static", "Content Management", "eCommerce", "MySpace", "Entirely Flash");
//The number of pages the customer wants
$page_row1 = array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20");
//The multiplier for the page they select
$page_row2 = array("4","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5","2.5");
//The rate for the page they select
$page_row3 = array("$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150","$150");
$site_pages = array($page_row1,$page_row2,$page_row3);
//Logo Choices
$logo_choice = array("yes", "no");
//Logo Concepts
$logo_row1 = array("1","2","3");
//Logo Concept Prices
$logo_row2 = array("600","950","1300");
$logo_con = array($logo_row1,$logo_row2);
?>