Passing hidden variables PLEASE HELP!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Skoalbasher
Forum Contributor
Posts: 147
Joined: Thu Feb 07, 2008 8:09 pm

Re: Passing hidden variables PLEASE HELP!

Post by Skoalbasher »

watson516 wrote:have you started the session?

Code: Select all

<?php
//The very top of the page, no output before this
session_start();
?>

Man, I'm a jackass.. Yeah, add this to the top of your page.
fionaom87
Forum Commoner
Posts: 43
Joined: Mon Feb 02, 2009 10:44 am

Re: Passing hidden variables PLEASE HELP!

Post by fionaom87 »

yes you were right about my session!! thanks

just one more things its pulling the quantity value but not the windowtype

<INPUT TYPE="hidden" name="windowtype[]" VALUE="Tilt and Turn">
<INPUT TYPE="hidden" name="windowtype[]" VALUE="Casement Windows">
<INPUT TYPE="hidden" name="windowtype[]" VALUE="Vertical SLider Windows">
<INPUT TYPE="hidden" name="windowtype[]" VALUE="speciality">
<INPUT TYPE="hidden" name="windowtype[]" VALUE="Bay Windows">
<INPUT TYPE="hidden" name="windowtype[]" VALUE="Bow Windows">

IS this correct? must i put the value in my input type as below

<div id="box31"><img src="FYP/img22.jpg" alt="Windows"/>
<label> Casement Windows </label>
</div>
<div id="box32"><input type="text" name="quantity[]" size="1" selected="selected"><label> Quantity</label></div>
Post Reply