Jump to content

how send / get multiple only checked values from check box with query sting


khayam shah

Recommended Posts

AOA

i am new in php

i have a problm with my script ..

actually i want to send only checked checkboxes data with query string …

in one check box there are multiple values i.e course ID, course Name , course type

i need these values individually in query string to insert in database

please reply me as soon as possible

 

 

<?php

..............

...........

......

 

while ($rsaCou = mysql_fetch_assoc($resCou))

{

 

$couId = $rsaCou['couId'];

$couName = $rsaCou['couName'];

$couTName = $rsaCou['couTName'];

$credithourz = $rsaCou['creditHourz'];

 

 

?>

 

 

<tr>

  <td><input type="checkbox" name="check[]" /></td>

  <td><?php echo $couId; ?></td>

  <td><?php echo $couName; ?></td>

  <td><?php echo $couTName; ?></td>

  <td><?php echo $credithourz; ?></td>

</tr>

<?php

 

foreach($check as $name => $value)

echo "$name -------- > $values";

 

?>

 

 

 

 

 

<?php }} }}?>

<tr><td></td><td style="text-align:right;" colspan="5">

<input type="reset" value="Reset" />

<input type="button" name="submit" value="Alocate Teacher" onclick="window.location.href='techcouview.php?sesId=<?php echo $_POST['sesId']; ?>&proId=<?php echo $_POST['proId']; ?>&deptId=<?php echo $_POST['deptId']; ?>&semId=<?php echo $_POST['semId']; ?>&secId=<?php echo $_POST['secId']; ?>&grpId=<?php echo $_POST['grpId']; ?>&couId=<?php echo '".$_POST['.$couId.']."'; ?>&couName=<?php echo $_POST[$couName]; ?>&couTName=<?php echo $_POST[$couTName]; ?>'">

 

 

 

 

</td></tr>

 

 

thnku :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.