Re: Little problem with a form
| From: | tempest tempestOK | Date: | Mon, 11 Sep 2000 23:48:53 +0000 |
| Subject: | Re: Little problem with a form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16254@lists.php.net to get a copy of this message | ||
I believe that if you take out the subscripts from the names in the form it will work right.
For example, in this code...
<input name="first">
<input name="first">
When it gets to the php it will (probably) create an array $first with $first[0] being the first one and $first[1] being the second one.
I'm not going to test this, I'm just going by my vague memory. I apologize if this isn't the right answer, but it's prolly worth a shot.
John
From: Diego Pérez Rández <webzitos@terra.es> To: php-general@lists.php.net Subject: [PHP] Little problem with a form Date: Mon, 11 Sep 2000 14:45:30 +0200 Hi to all: I usually work with perl and a frien tell me somethin about php. I get an online manual and i try to do some examples. For example, I want to generate an e-mail with some data receive from a form of a web page. I do some examples and I can´t get the name of the fields. I need this because i want to generate a general code for receive the data of a form and then generate an e-mail. I do some examples with this code:_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.<form ...... <input name="first[1]"..... <input name="first[2]"..... <input name="second[1].....This receive easy the data of the fields. But i can get the name of the field. I want to generate an e-mail like this:Data receive from the web page:Name : Pepito Flores Address : lsdjfalkdfjaldk City : Pamplona ......The values of name, addres and city i would like toobtain from the form. Can anyone help me. Thanks. Best Regards, Diego -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net