i'm trying to use comboboxes for quantity in Virtuemart instead of quantity text and update button.
When i have only one article in the cart it works perfectly, but when i have more than one, it's not working.
Here's the form code
<form action="<?php echo JRoute::_ ('index.php'); ?>" method="post" class="inline" name="frm">
<input type="hidden" name="option" value="com_virtuemart"/>
<input type="text" title="<?php echo JText::_ ('COM_VIRTUEMART_CART_UPDATE') ?>.2" class="inputbox" size="3" maxlength="4" name="quantity" value="<?php echo $prow->quantity ?>" style="display:none;"/>
<select name="cantidad" id="cantidad" onchange="getval(this);" value="<?php echo $prow->quantity ?>" title="<?php echo JText::_ ('COM_VIRTUEMART_CART_UPDATE') ?>"> <script type="text/javascript">
function getval(sel) {
document.frm.quantity.value = (sel.value);
document.getElementById('actualizar').click();
}
</script>
<option value="<?php echo $prow->quantity ?>"><?php echo $prow->quantity ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select>
<input type="hidden" name="view" value="cart"/>
<input type="hidden" name="task" value="update"/>
<input type="hidden" name="cart_virtuemart_product_id" value="<?php echo $prow->cart_item_id ?>"/>
<input type="submit" class="vmicon vm2-add_quantity_cart" id="actualizar" name="update" title="<?php echo JText::_ ('COM_VIRTUEMART_CART_UPDATE') ?>" align="middle" value=" " style="display:none;"/>
</form>
Thank you
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am trying to store data in $_SESSION variables so I can use it in other parts of the form.
I have an input for team name which I need to use within a drop down a couple of steps down the form, the team name come from the user input only.
Im struggling to pass this data throughout the form and then post it at the end.
The session is being set in header.php
<?php
if(!empty($_POST)) {
$_SESSION['dashboardName'] = $_POST['dashboardName'];
$_SESSION['teamName'] = $_POST['teamName'];
$_SESSION['firstName'] = $_POST['firstName'];
$_SESSION['lastName'] = $_POST['lastName'];
$_SESSION['memberTeam'] = $_POST['memberTeam'];
$_SESSION['stenData'] = $_POST['stenData'];
$_SESSION['score_1'] = $_POST['score_1'];
$_SESSION['score_2'] = $_POST['score_2'];
$_SESSION['score_3'] = $_POST['score_3'];
$_SESSION['score_4'] = $_POST['score_4'];
$_SESSION['score_5'] = $_POST['score_5'];
$_SESSION['score_6'] = $_POST['score_6'];
$_SESSION['score_7'] = $_POST['score_7'];
$_SESSION['score_8'] = $_POST['score_8'];
}
?>
<form action="" method="POST">
<!-- STEP :: 1 -->
<div class="step-one">
<h1>STEP 1</h1>
<input type="text" name="dashboardName" required placeholder="Dashboard Name" value="<?php echo $_SESSION['dashboardName']; ?>">
<button class="step-one-next">Next</button>
</div>
<!-- STEP :: 2 -->
<div class="step-two">
<h1>STEP 2</h1>
<input type="text" name="teamName" placeholder="Team name" required value="<?php echo $_SESSION['teamName']; ?>">
<button class="step-two-previous">Previous</button>
<button class="step-two-next">Next</button>
</div>
<!-- STEP :: 3 -->
<div class="step-three">
<h1>STEP 3</h1>
<input type="text" name="firstName" placeholder="First Name" required value="<?php echo $_SESSION['firstName']; ?>">
<input type="text" name="lastName" placeholder="Last Name" required value="<?php echo $_SESSION['lastName']; ?>">
<button class="step-three-previous">Previous</button>
<button class="step-three-next">Next</button>
</div>
<!-- STEP :: 4 -->
<div class="step-four">
<h1>STEP 4</h1>
<select name="memberTeam">
<option><?php echo $_SESSION['teamName']; ?></option>
</select>
<button class="step-four-previous">Previous</button>
<button class="step-four-next">Next</button>
</div>
<!-- STEP :: 5 -->
<div class="step-five">
<h1>STEP 5</h1>
<textarea name="stenData" placeholder="Paste Sten Data..." required><?php echo $_SESSION['stenData']; ?></textarea>
<button class="step-five-previous">Previous</button>
<button class="step-five-next">Next</button>
</div>
<!-- STEP :: 6 -->
<div class="step-six">
<h1>STEP 6</h1>
<select name="score_1">
<option selected="selected"><?php echo $_SESSION['score_1']; ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<select name="score_2">
<option selected="selected"><?php echo $_SESSION['score_2']; ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<select name="score_3">
<option selected="selected"><?php echo $_SESSION['score_3']; ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<select name="score_4">
<option selected="selected"><?php echo $_SESSION['score_4']; ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<select name="score_5">
<option selected="selected"><?php echo $_SESSION['score_5']; ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<select name="score_6">
<option selected="selected"><?php echo $_SESSION['score_6']; ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<select name="score_7">
<option selected="selected"><?php echo $_SESSION['score_7']; ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<select name="score_8">
<option selected="selected"><?php echo $_SESSION['score_8']; ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<button class="step-six-previous">Previous</button>
<button class="step-six-next">Next</button>
</div>
<!-- STEP :: 7 -->
<div class="step-seven">
<h1>STEP 7</h1>
<p><?php echo $_SESSION['dashboardName']; ?></p>
<button class="step-seven-previous">Previous</button>
<input type="submit" name="test" value="Submit">
</div>
</form>
<script>
$(".step-one-next").click(function(){
$(".step-one").hide();
$(".step-two").show();
});
$(".step-two-previous").click(function(){
$(".step-two").hide();
$(".step-one").show();
});
$(".step-two-next").click(function(){
$(".step-two").hide();
$(".step-three").show();
});
$(".step-three-previous").click(function(){
$(".step-three").hide();
$(".step-two").show();
});
$(".step-three-next").click(function(){
$(".step-three").hide();
$(".step-four").show();
});
$(".step-four-previous").click(function(){
$(".step-four").hide();
$(".step-three").show();
});
$(".step-four-next").click(function(){
$(".step-four").hide();
$(".step-five").show();
});
$(".step-five-previous").click(function(){
$(".step-five").hide();
$(".step-four").show();
});
$(".step-five-next").click(function(){
$(".step-five").hide();
$(".step-six").show();
});
$(".step-six-previous").click(function(){
$(".step-six").hide();
$(".step-five").show();
});
$(".step-six-next").click(function(){
$(".step-six").hide();
$(".step-seven").show();
});
$(".step-seven-previous").click(function(){
$(".step-seven").hide();
$(".step-six").show();
});
</script>
So the end goal is to input the inputs at each stage, name the team and then the team names be available in the drop down on the memberTeam <select>
Every time you hit Next button, the form data don't post to server. You can change to <button type="submit" class="step-one-next">Next</button> (add type as submit), but you need to handle which step you're in and which step is next when hit Next. Otherwise, it's easier to use JavaScript.
Updated using jQuery:
https://jsfiddle.net/79nj8e7p/1/
Sorry, I don't have enough reputation to put as comment.
Hello i have a problem where my data isn't being put into my MYSQL database.
Also there isn't any errors at all on screen or in the php error page.
My code is below.
This is my array with all the data in
$time_submit = date('d/m/Y h:i:s a', time());
$submit_data = array(
'time_submit' => $time_submit,
'time_event' => $_POST['date'] . " " . $_POST['hr'] . ":" . $_POST['min'],
'project_number' => $_POST['project'],
'event' => $_POST['event'],
'happened' => $_POST['happened'],
'about_it' => $_POST['about_it'],
'reporter_name' => $_POST['reporter'],
'organisation' => $_POST['organisation'],
'trackside' => $_POST['trackside'],
'event_location' => $_POST['location'],
'phone_number' => $_POST['number'],
'yes_rules' => $_POST['rules'],
'life_rules' => $_POST['life_rules'],
'require_feedback' => $_POST['feedback'],
'reporter_email' => $_POST['email'],
'region' => $_POST['region'],
'photo' => $file_path
);
submit_form($submit_data);
I have a function that submits the data
function submit_form($submit_data) {
global $conn;
array_walk($submit_data, 'array_sanitize');
$fields = '`' . implode('`, `', array_keys($submit_data)) . '`';
$data = '\'' . implode('\', \'', $submit_data) . '\'';
mysqli_query($conn,"INSERT INTO tb_data($fields) VALUES($data)");
}
I have echoed everything to make sure its all okay and everything looks fine.
My form
<form id="closecall" action="<? echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post" enctype="multipart/form-data">
<ul class="form">
<li><label><i>* Fields marked with an asterix are required</i></label></li><br />
<? echo output_errors($errors); ?>
<li><label for="date"><i>* </i>Event Date and time:<i class="required" id="datepicker_info">Required</i></label></li>
<li>
<input id="datepicker" type="text" name="date" >
<select name="hr" id="hr">
<option value="">Hr</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="00">00</option>
</select>
<select name="min" id="min">
<option value="">Min</option>
<option value="00">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
</select>
</li><br />
<li><label for="Project"><i>* </i>Involved Project:<i class="required" id="project_info">Required</i></label></li>
<li><input id="project" name="project" type="text"></li><br />
<li><label for="Event"><i>* </i>Describe the Event:<i class="required" id="event_info">Required</i></label></li>
<li><textarea class="textarea" id="event" name="event"></textarea></li><br />
<li><label for="happened"><i>* </i>What Could Have Happened:<i class="required" id="happened_info">Required</i></label></li>
<li><textarea class="textarea" id="happened" name="happened"></textarea></li><br />
<li><label for="about_it"><i>* </i>What were you able to do about it:<i class="required" id="about_info">Required</i></label></li>
<li><textarea class="textarea" id="about_it" name="about_it"></textarea></li><br />
<li><label for="reported">Reported By:</label></li>
<li><input id="reported" name="reporter" type="text"/></li><br />
<li><label for="organisation"><i>* </i>Organisation:<i class="required" id="organisation_info">Required</i></label></li>
<li><input id="organisation" name="organisation" type="text"></li><br />
<li><label for="trackside"><i>* </i>Trackside or Non-Trackside:</label></li>
<li>
<input type="radio" name="trackside" value="Trackside"><span>Trackside</span>
<input type="radio" name="trackside" value="Non-Trackside" checked><span>Non-Trackside including Civils and Aiports</span>
</li><br />
<li><label for="location">Other Location Info (Stand No./ELR/Mileage etc):</label></li>
<li class="optional"><span>(If Known)</span></li>
<li><input id="location" name="location" type="text"/></li><br />
<li><label for="number">Reporters Mobile Number:</label></li>
<li><input id="contact" name="number" type="text"/></li><br />
<li><label for="rules"><i>* </i>Potential Breach of Life Saving Rules? (Not Applicable to Airports):</label></li>
<li>
<input type="radio" name="rules" class="rules" value="Yes" ><span>Yes</span>
<input type="radio" name="rules" class="rules" value="No"checked><span>No</span>
</li><br />
<li class="liferules" style="display: none;"><label for="liferules"><i>* </i>Life Saving Rules (Not Applicable to Airports):<i class="required" id="rules_info">Required</i></label></li>
<li class="liferules" style="display: none;">
<select name="life_rules" id="liferules">
<option value="">Please Select!</option>
<option value="Working with electricity">Working with electricity</option>
<option value="Working with electricity-test before touch">Working with electricity-test before touch</option>
<option value="Always obey the speed limit and wear a seat belt.">Always obey the speed limit and wear a seat belt.</option>
<option value="Never use a hand-held or hands-free phone, or programme any other mobile device, while driving.">Never use a hand-held or hands-free phone, or programme any other mobile device, while driving.</option>
<option value="Working at height-without a harness">Working at height-without a harness</option>
<option value="Equipment fit for intended purpose">Equipment fit for intended purpose</option>
<option value="Under the influence of Drugs or Alcohol">Under the influence of Drugs or Alcohol</option>
<option value="Wasn't trained for the job at hand">Wasn't trained for the job at hand</option>
<option value="Entered exclusion zone(Without permission)">Entered exclusion zone(Without permission)</option>
<option value="Plans and Permits Weren't in place before Job">Plans and Permits Weren't in place before Job</option>
</select>
</li><br />
<li><label for="feedback"><i>* </i>Does the Reporter Require Close Call Feedback:</label></li>
<li>
<input type="radio" name="feedback" class="feedback" value="Yes" ><span>Yes</span>
<input type="radio" name="feedback" class="feedback" value="No" checked/><span>No</span>
</li><br />
<li class="email" style="display: none;"><label for="email"><i>* </i>Please enter your email address:<i class="required" id="feedback_info">Required</i></label></li>
<li class="email" style="display: none;"><input id="feedback" type="email" name="email"></li><br />
<li><label for="region"><i>* </i>Region:<i class="required" id="region_info">Required</i></label></li>
<li>
<select id="region" name="region">
<option value="">Please Select!</option>
<option value="Wales and Western">Wales and Western</option>
<option value="Central">Central</option>
<option value="Southern">Southern</option>
<option value="Airports">Airports</option>
</select>
</li><br />
<li><label><i>* Max 5MB Photos and PDF's only </i>Do you want to upload a file:</label></li>
<li>
<input type="radio" name="upload" value="Yes"><span>Yes</span>
<input type="radio" name="upload" value="No" checked/><span>No</span>
</li><br />
<li style="display: none;" class="fileload"><label for="image">File Upload:</label></li><br />
<li style="display: none;" class="fileload"><input id="file0" type="file" name="file1" ></li><br />
<li style="display: none;" class="fileload"><input name="button" type="button" value="Upload More"></li><br />
<li style="display: none;" class="fileshow"><input type="file" name="file2"></li>
<li style="display: none;" class="fileshow"><input type="file" name="file3"></li>
<li style="display: none;" class="fileshow"><input type="file" name="file4"></li>
<li style="display: none;" class="fileshow"><input type="file" name="file5"></li><br />
<li><i class="required" id="end_info">Please fill out required fields!</i></li>
<li><input id="submit" type="submit" value="Submit" ></li>
<li></li>
I know the way i do my time is wrong and i am going to change it.
Thanks
You should check for MySQL Error with mysqli_error
if (!mysql_query($conn, ...)) {
echo mysqli_error($conn);
}
This form works well in choosing a season and an episode with my php handling script:
<form action="view" method="get">
<font color="white">Season:</font><select name="s">
<option id="s" value="1">1</option>
</select>
<font color="white">Episode: </font><select name="e">
<option id="e" value="1">1</option>
<option id="e" value="2">2</option>
<option id="e" value="3">3</option>
<option id="e" value="4">4</option>
<option id="e" value="5">5</option>
<option id="e" value="6">6</option>
<option id="e" value="7">7</option>
<option id="e" value="8">8</option>
<option id="e" value="9">9</option>
<option id="e" value="10">10</option>
<option id="e" value="11">11</option>
<option id="e" value="12">12</option>
<option id="e" value="13">13</option>
<option id="e" value="14">14</option>
<option id="e" value="15">15</option>
<option id="e" value="16">16</option>
<option id="e" value="17">17</option>
<option id="e" value="18">18</option>
<option id="e" value="19">19</option>
<option id="e" value="20">20</option>
<option id="e" value="21">21</option>
<option id="e" value="22">22</option>
<option id="e" value="23">23</option>
<option id="e" value="24">24</option>
</select>
<input type="submit" value="GO">
</form>
So, can anyone tell me why this form won't work to pick a random episode?
<form action="view" method="get">
<input type="hidden" id="s" value="1">
<input type="hidden" id="e" value="<?php echo(rand(1,24)); ?>">
<input type="submit" value="Watch Random Episode">
</form>
It won't append the variables to the end of the url, all I get is this:
http://127.0.0.1/media/show/view/?
The hidden inputs need a name attribute. In the same way that the select elements have a name..
<input type="hidden" name="s" id="s" value="1">
<input type="hidden" name="e" id="e" value="<?php echo(rand(1,24)); ?>">
Try something like this :
<?php
$ep = rand(1,24);
echo $ep;
?>
<form action="view" method="get">
<input type="hidden" id="s" value="1">
<input type="hidden" id="e" name="e" value="<?php echo $ep; ?>">
<input type="submit" value="Watch Random Episode">
</form>
First you need to define name attribute to each field and one space to echo and print value
<input type="hidden" id="s" value="1" name ="s">
<input type="hidden" id="e" name = "e" value="<?php echo rand(1,24); ?>">
Second check you have htaccess [QSA] also with rules
<form action="index.php" method="post">
<select name="imageslist" onchange='this.form.submit()' >
<option value="0">Select One</option>
<option value="1">Image 01</option>
<option value="2">Image 02</option>
<option value="3">Image 03</option>
<option value="4">Image 04</option>
<option value="5">Image 05</option>
<option value="6">Image 06</option>
<option value="7">Image 07</option>
<option value="8">Image 08</option>
<option value="9">Image 09</option>
<option value="10">Image 10</option>
</select>
<noscript><input type="submit" value="Submit"></noscript>
</form>
In my index.php I have the following
var image1 = '<img id="img_<?php echo $_POST['imageslist']; ?>" src="images/<?php echo $_POST['imageslist']; ?>.png" />';
var image2 = '<img id="img_2" src="images/2.png" />';
var image3 = '<img id="img_3" src="images/3.png" />';
How can I get the next 2 values of the selected item?
Sorry i didn't understand your question completely
hope this helps you
<script type="text/javascript">
function test(a)
{
var r=document.forms['fm'].imageslist[(parseInt(a.value)+1)];
document.getElementById('second').value=r.value;
var r2=document.forms['fm'].imageslist[(parseInt(a.value)+2)];
document.getElementById('third').value=r2.value;
}
</script>
<form action="index.php" method="post" name='fm'>
<select name="myList" onchange='test(this)' >
<option value="0">Select One</option>
<option value="1">Image 01</option>
<option value="2">Image 02</option>
<option value="3">Image 03</option>
<option value="4">Image 04</option>
<option value="5">Image 05</option>
<option value="6">Image 06</option>
<option value="7">Image 07</option>
<option value="8">Image 08</option>
<option value="9">Image 09</option>
<option value="10">Image 10</option>
</select>
<input type="submit" value="Submit">
<input type="hidden" name="second" id="second">
<input type="hidden" name="third" id="third">
</form>
in index.php
print_r($_POST);// Array ( [myList] => 4 [second] => 5 [third] => 6 )
Below is a snippet of the code I have created on a form page. The form inputs display the correct variables for $adjustedGrossIncome, $personalExemptions and the calculation for Tax Due Before Refundable Credits, but when I try to echo $birthYear the php dies. Any hints what I'm doing wrong?
<?php
$filingStatus = $_Post['filingStatus'];
$birthYear = $_Post['birthYear'];
$dependents = $_Post['dependents'];
$children = $_POST['children'];
$exemptions = $_POST['exemptions'];
$income = $_POST['income'];
$investments = $_POST['investments'];
$retirement = $_POST['retirement'];
$property = $_POST['property'];
$adjustedGrossIncome = $income + $investments + $retirement;
$personalExemptions = ($exemptions * 3950);
?>
<form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<fieldset style="width:500px;">
<legend>Filing Status</legend>
<p>
<label>
<input type="radio" name="filingStatus" value="married" id="filingStatus" />
Married filing jointly</label>
<br />
<label>
<input type="radio" name="filingStatus" value="single" id="filingStatus" />
Single or Head of Household</label>
</p>
</fieldset>
<p>
<label>Birth Year
<select name="birthYear" id="birthYear">
<option>Select Year</option>
<option value="1923">1923</option>
<option value="1924">1924</option>
<option value="1925">1925</option>
<option value="1926">1926</option>
<option value="1927">1927</option>
<option value="1928">1928</option>
<option value="1929">1929</option>
<option value="1930">1930</option>
<option value="1931">1931</option>
<option value="1932">1932</option>
<option value="1933">1933</option>
<option value="1934">1934</option>
<option value="1935">1935</option>
<option value="1936">1936</option>
<option value="1937">1937</option>
<option value="1938">1938</option>
<option value="1939">1939</option>
<option value="1940">1940</option>
<option value="1941">1941</option>
<option value="1942">1942</option>
<option value="1943">1943</option>
<option value="1944">1944</option>
<option value="1945">1945</option>
<option value="1946">1946</option>
<option value="1947">1947</option>
<option value="1948">1948</option>
<option value="1949">1949</option>
<option value="1950">1950</option>
<option value="1951">1951</option>
<option value="1952">1952</option>
<option value="1953">1953</option>
<option value="1954">1954</option>
<option value="1955">1955</option>
<option value="1956">1956</option>
<option value="1957">1957</option>
<option value="1958">1958</option>
<option value="1959">1959</option>
<option value="1960">1960</option>
<option value="1961">1961</option>
<option value="1962">1962</option>
<option value="1963">1963</option>
<option value="1964">1964</option>
<option value="1965">1965</option>
<option value="1966">1966</option>
<option value="1967">1967</option>
<option value="1968">1968</option>
<option value="1969">1969</option>
<option value="1970">1970</option>
<option value="1971">1971</option>
<option value="1972">1972</option>
<option value="1973">1973</option>
<option value="1974">1974</option>
<option value="1975">1975</option>
<option value="1976">1976</option>
<option value="1977">1977</option>
<option value="1978">1978</option>
<option value="1979">1979</option>
<option value="1980">1980</option>
<option value="1981">1981</option>
<option value="1982">1982</option>
<option value="1983">1983</option>
<option value="1984">1984</option>
<option value="1985">1985</option>
<option value="1986">1986</option>
<option value="1987">1987</option>
<option value="1988">1988</option>
<option value="1989">1989</option>
<option value="1990">1990</option>
<option value="1991">1991</option>
<option value="1992">1992</option>
</select>
</label>
</p>
<p>
<label>Number of Dependents (not including taxpayer and spouse if applicable
<input type="text" name="dependents" id="dependents" />
</label>
</p>
<p>
<label>Number of Children under 18
<input type="text" name="children" id="children" />
</label>
</p>
<p>
<label>Total number of exemptions
<input type="text" name="exemptions" id="exemptions" />
</label>
</p>
<p>
<label>Total Wages/Salary
<input type="text" name="income" id="income" />
</label>
</p>
<p>
<label>Investment income (interest, dividends, capital gains)
<input type="text" name="investments" id="investments" />
</label>
</p>
<p>
<label>Retirement income (pension, IRA, 401(k), etc.)
<input type="text" name="retirement" id="retirement" />
</label>
</p>
<p>
<label>Annual property taxes paid on primary residence and/or annual rent
<input type="text" name="property" id="property" />
</label>
</p>
<p>
<input type="submit" name="submit" id="submit" value="Calculate Net Tax Liability for 2013" />
<input type="reset" name="reset" id="reset" value="Reset Form" onClick="window.location.reload()" />
</p>
</form>
<p>Adjusted Gross Income: $<?php echo($adjustedGrossIncome); ?></p>
<p>Personal Exemptions: $<?php echo($personalExemptions); ?></p>
<p>Tax Due Before Refundable Credits: $<?php echo(($adjustedGrossIncome - $personalExemptions) * .0425); ?></p>
<p><?php echo($birthYear); ?></p>
Change all $_Post to uppercase $_POST
This is known as a superglobal and must be in uppercase.
More on superglobals can be found on the PHP.net Web site
http://php.net/manual/en/language.variables.superglobals.php