Re: Sending multiple items via a single form field

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

 



RTFM www.php.net/mysql-fetch-assoc

bastien


From: Hayri <Hayri@xxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Subject: Re:  Sending multiple items via a single form field
Date: Mon, 30 Jan 2006 12:07:32 +0100

can somebody tell me what the hell does mysql_fetch_assoc do ???

thx

Micah Stevens schrieb:

You could just seperate the data in the field's value with a delimeter like | or something you wouldn't see in the data, then explode() based on that?

What kind of field are you using? Your explanation is very vague.

On Monday 14 November 2005 12:40 pm, Chris Payne wrote:

Hi there everyon,



I have a set of form fields dynamically generated but each item must
contain 2 pieces of data - the input from the field AND the id that the
input represents from the DB. I had this info a while back but had a major
HD crash and lost the info I had, how can I do this easily in PHP?



Hopefully an easier to understand scenario:



I have a form with - example - 5 items listed, each item from the DB and
you select ONE item only out of the list, when you submit the form it sends the input from the field you select BUT I also need it to send an addition
bit of info in the form of $id so that on the processing page, I can
extract both the ID and the data entered from a single field. Obviously I
can't use a hidden field for this so the data has to be tacked-on to the
input field somehow?



Any help would save my life :-)



Chris

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


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux