Re: determine number of entries Options (2)



I've tried implementing your comments but can't make it work. Below
is all of my code (testing) could you point out my mistake because it
is still spitting out a "Warning: Invalid argument supplied for
foreach()" error message.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>

<?php
foreach($_SERVER['POST']['IngQty'] as $key => $value) {
echo $key." : ".$value."<br/>";
}

echo "Count: ".count($_SERVER['POST']['IngQty'])."<br/><hr>" ;
?>

<form id="form1" name="form1" method="post" action="">
<p>
<input type="text" name="IngQty[0]"><br>
<input type="text" name="IngQty[1]"><br>
<input type="text" name="IngQty[2]">
</p>
<p>
<input type="submit" name="Submit" value="Submit" />
</p>
</form>

</body>
</html>


Thank you for all your help! Is there a good tutorial you could
recommend or subject name that I should lookup that covers this (I
don't even know what I am trying to do is called).

QB
.



Relevant Pages

  • Re: MT questions
    ... My biggest mistake is, the patient was prepped and raped instead of draped. ... > typewriter). ... > When I started using an expander my mentor gave me some very good advice. ... rc is recommend, rcd recommended, rcj recommendation, rcs ...
    (sci.med.transcription)
  • Re: Named Mistakes and Questionable Practices
    ... One example mistake is the One True Lookup Table aka the ... isn't the best general solution to the problem of lookup data. ... debate between those who want dynamic data type creation, ... The strict data management camp tries, usually unsuccessfully, to point out ...
    (comp.databases.theory)
  • Re: MT questions
    ... > My biggest mistake is, the patient was prepped and raped instead of ... doing legal work where you could NOT make a mistake ... rc is recommend, rcd recommended, rcj recommendation, rcs ... When I do not have the expander turned on I have ...
    (sci.med.transcription)
  • Re: Delurk and... oops...
    ... Until you get a good hold on pyro, I would recommend you use ... Ofca's safety list. ... I am not a careless person, which makes my mistake all that more painful. ... Thankfully, I have met a man who works for one of the pyro supply places and when I wrote him about my mistake, he was kind and helped me out. ...
    (rec.pyrotechnics)
  • Re: [PHP] getting timestamp for first day of current week
    ... php clearly makes a mistake in giving monday of the current week. ... I don't see how you figure "clearly makes a mistake". ... scalable system for accessing system services | ...
    (php.general)