English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i`m doing a simple project of my own with php(Front end), Mysql(Back end),html,javascript. The theme is to get register an user with my site and whenever he needs to modify his/her profile he logged in and altered themselves what he enters in their given column. Whenever if the WebDesigner wants to delete an account with Mysql he just click the checkbox provide to him with the user name. Then u make the selected user to delete the account using chech boxes in php. I need to know is how to use the check box with multiple values to delete the specified user?

2007-03-26 22:19:37 · 3 answers · asked by SMILY 1 in Computers & Internet Programming & Design

3 answers

use a textbox rather since when number of users become large, you can just search for the username and delete

2007-03-26 22:32:16 · answer #1 · answered by Anonymous · 0 1

In direct answer to the question:
You can pass multiple values of the same name as long as the form's enctype is "application / x-www-form-urlencoded"

However, on the back end you may have to do some custom processing of the raw input to access these values.
For example, PHP will, by default ignore repeated values.

2007-03-27 00:03:08 · answer #2 · answered by Fabian 2 · 0 0

it's not rocket surgery!
here's a sample on doing multiple checkboxes!

http://www.smartwebby.com/PHP/Phptips2.asp

the same technique works for select multiples and multiple input type=text with the same name!

2007-03-27 08:40:49 · answer #3 · answered by jake cigar™ is retired 7 · 1 0

fedest.com, questions and answers