Re: Question about arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 12, 2007, at 4:14 PM, Daniel Brown wrote:

On Nov 12, 2007 3:59 PM, Jason Pruim <japruim@xxxxxxxxxx> wrote:
[snip]
echo <<<HTML
       <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;


   Why 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.

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@xxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux