RE: [PHP] Need a PHP clue
| From: | Krznaric Michael | Date: | Thu, 10 Aug 2000 14:09:50 +0000 |
| Subject: | RE: [PHP] Need a PHP clue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11137@lists.php.net to get a copy of this message | ||
Are you looking to modify more than one box at a time?
-----Original Message-----
From: Jonathan Chum [mailto:jchum@techdevelopers.com]
Sent: Thursday, August 10, 2000 10:04 AM
To: Krznaric Michael
Subject: RE: [PHP] Need a PHP clue
Yes, I am using radio buttons for selecting answers to the polls, but
that's not where I'm describing my problem. My problem lies in editing
polls. Basically, I have a text box for the question, and 5 text boxes for
answers. The boxes should be able to edit, modify, remove depending on the
content that lies in the boxes when passed over the PHP script. I was
thinking of something towards using an array to work this out, but can't
put my finger on it.
At 09:59 AM 8/10/2000 -0400, you wrote:
>If it's a poll, why are you using text boxes, have you considered radio
>buttons? Or am I missing something here?
>
>
>Mike
>
>-----Original Message-----
>From: jchum@techdevelopers.com [mailto:jchum@techdevelopers.com]
>Sent: Thursday, August 10, 2000 9:35 AM
>To: php-general@lists.php.net
>Subject: [PHP] Need a PHP clue
>
>
>I really need some help with this one guys.
>
>I am trying to create an edit function for my poll script. Modifying
>questions is not a problem, only when it comes to editing, updating,
>and deleting the answers possible for the poll. I'd like to do it in
>one step.
>
>My table is organized with a unique id for each answer to the poll, a
>pollid column which is uses to see which answer will be shown for what
>poll, and the answer it self.
>
>Each poll has a max of 5 questions, so 5 text boxes are created. In
>each text box, the answer is prefilled. Now here's the problem. . . I
>cannot figure out how to pass the info to PHP so that it knows where
>to find the row and do either an update, insert, or delete.
>
>I was trying to have the name tag of each text box be the unique id
>and the value will be an answer to the poll. Problem is that I cannot
>figure how with PHP to know the variable name which is passed and
>hence, I cannot do the tasks needed.
>
>Basically I need to pass some how, an identifier for each of the 5
>answer text box so I can perform a query using WHERE.
>
>Any ideas? Thanks.
>
>--
>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