Web Hosting Talk







View Full Version : Need urgent help .. Real Urgent


kamyana
12-26-2004, 12:18 AM
Hi,
I am working on my university assignment. I am making a simple internal messaging system.

What i have to do is, make a checkbox and upon clicking it, all the checkboxes against each message are checked and what so ever function like delete or move, i perform is performed on all messages. Just like in yahoo or hotmail, function of select all messages by clicking one main checkbox.

Please help me, i need its code and i have only one day to submit my assignment.

Waiting for urgent replies ... Do send me complete code and explanation as well, shall be thankful to you.

Digitized
12-26-2004, 04:25 AM
Ok here it is all you have to do is intergrate it into your page and chagne the file name int he header() function.

-Begin PHP Code-------------------------------------------------------------
<?php
If(isset($check)){
If($call == 'checkbox'){
header('Location: Index.php?cvalue=checked');
}else{
header('Location: Index.php');
}
}
?>
<html>
<head>
<title>Check All</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="165" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="checkbox" name="call" value="checkbox">
Check All</td>
</tr>
<tr>
<td>
<input type="checkbox" name="ucall" value="checkbox">
Un-Check All</td>
</tr>
<tr>
<td>
<input type="submit" name="check" value="Go">
</td>
</tr>
</table>
<p>
<input type="checkbox" name="1" value="checkbox"<?php print $cvalue; ?>>
</p>
<p>
<input type="checkbox" name="2" value="checkbox"<?php print $cvalue; ?>>
</p>
<p>
<input type="checkbox" name="3" value="checkbox"<?php print $cvalue; ?>>
</p>
<p>
<input type="checkbox" name="4" value="checkbox"<?php print $cvalue; ?>>
</p>
</form>
</body>
</html>
-End PHP Code---------------------------------------------------------------

hiryuu
12-27-2004, 12:31 AM
Can you port that to javascript and e-mail it to his professor with his address on it?

WO-Jacob
12-27-2004, 12:43 AM
Originally posted by hiryuu
Can you port that to javascript and e-mail it to his professor with his address on it?

LOL:rofl:

kamyana
12-27-2004, 02:47 AM
Thanks for it ... What i need is code in asp ... Again need help ..

Hay my professor is on holiday ! ... but he checks his mail regularly ...

Bye ;)

leviathan
12-27-2004, 02:54 AM
Originally posted by kamyana
Thanks for it ... What i need is code in asp ... Again need help ..

Hay my professor is on holiday ! ... but he checks his mail regularly ...

Bye ;)

Perhaps rather than browsing WHT, you should do your assignment. Turning in work that is not your own is usually grounds for suspension, expulsion, or sometimes even criminal charges.