Re: Question about arrays
| From: | Jason Pruim | Date: | Mon, 12 Nov 2007 21:18:11 +0000 |
| Subject: | Re: Question about arrays | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264396@lists.php.net to get a copy of this message | ||
On Nov 12, 2007, at 4:14 PM, Daniel Brown wrote:
On Nov 12, 2007 3:59 PM, Jason Pruim <japruim@raoset.com> wrote: [snip]The reason for the 2 form elements, was because they need to be able to tell it how many text boxes it needs. Sometimes, it could need 5 rows, sometimes 50... It depends on the particular job. If you know of a better way to do it, Possibly a if/else setup? I'm still at the early stages of thinking in this program. -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comecho <<<HTMLWhy do you have two FORM attributes doing the same thing, going to the same place here? It will only submit data from within the form you're hitting the button.<form method='GET' action='index.php'> <P></Number of text boxes needed: <input type='text' size='5'name='txtNumber' value='{$TextBoxes}'><input type='submit'></P> </form> <form method='POST' action='index.php'> <P>Weight of 100 pieces: <input type='text' size='5' name='txtWeight'value='{$pieceWeight}'></p><table> <tr> <td>Route #</td> <td>Pieces per route</td> <td>Weight of route</td> </tr>HTML;