PHP Form Help

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.


$logo = $_POST[‘logo’];

Project p.heading { margin:0px; font-size:18px; font-weight:bold; } <?php include('info.php'); ?>

Site Type

<?php foreach($site_type as $value => $name) { echo ''.$name.'
'; } ?>

Number of Pages

<?php foreach($site_pages[0] as $s) { echo ''.$s.''; } ?>


<?php foreach($logo_choice as $l) { echo ''.$l.''; } ?> <?php if($logo == 'yes') { ?> <?php foreach($logo_con[0] as $c) { echo ''.$c.''; } ?> <?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);

at what point do u need help?
is there something not working, or are u just not able to do the next step.
anyway tell us some more.

Well I’ve gotten a lot further. It appears I needed to add some Javascript to get what I wanted. Mainly I wanted to have some of the question options hidden, and not show up until somebody chooses one of the other options.

Sponsor our Newsletter | Privacy Policy | Terms of Service