...

View Full Version : pass two values with one button



thindrakhya
09-03-2007, 05:32 PM
i also asked problem similar to this in my previous post

i am displaying users with class id and user id in the table format
now every row has delete button

i want class id and user id to delete the user
how can i pass these two values using this delete button
in PHP

rafiki
09-03-2007, 05:58 PM
use hidden form elements?

<input type='hidden' value='something' name='somethingelse' />

Len Whistler
09-03-2007, 06:00 PM
You can use explode to separate values into an array. The code below uses an underscore as the separator.


<?php

$values = green_blue;

$two_part_array = explode('_', $values);

echo "$two_part_array[0]"; // green
echo "$two_part_array[1]"; //blue

?>

thindrakhya
09-03-2007, 06:45 PM
thanks friends



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum