Code: Select all
<?php
$iData=$_POST['inputData'];
$sz=sizeof($iData);
//ect ect
?>
Moderator: General Moderators
Code: Select all
<?php
$iData=$_POST['inputData'];
$sz=sizeof($iData);
//ect ect
?>
Code: Select all
<input name="foo[]" type="checkbox" value="1">
<input name="foo[]" type="checkbox" value="2">
<input name="foo[]" type="checkbox" value="3">Code: Select all
echo '<pre>';
print_r($_POST['foo']);
echo '</pre>';Code: Select all
<?php
$price[0] = $_POST['pr1'];$price[1] = $_POST['pr2'];$price[2] = $_POST['pr3'];$price[3] = $_POST['pr4'];
$price[4] = $_POST['pr5'];$price[5] = $_POST['pr6'];$price[6] = $_POST['pr7'];$price[7] = $_POST['pr8'];
?>
Code: Select all
<form action="process.php" method = "post">
Price 1. <input type="text" name="pr1" tabindex="2" style="text-align:right;" MAXLENGTH="6" size="4">
Price 2. <input type="text" name="pr2" tabindex="2" style="text-align:right;" MAXLENGTH="6" size="4">
ect ect
</form>
Code: Select all
<form action="process.php" method = "post">
Price 1. <input type="text" name="pr[1]" tabindex="2" style="text-align:right;" MAXLENGTH="6" size="4">
Price 2. <input type="text" name="pr[2]" tabindex="2" style="text-align:right;" MAXLENGTH="6" size="4">
ect ect
</form>Code: Select all
echo '<pre>';
print_r($_POST['pr']); //array(1 => "", 2 => "")
echo '</pre>';Excellent. Enjoy the new found knowledgecutthroat wrote:Bang on, you got it. Problem solved. The little things in life that get you down. Thanks for your help.