To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 16 November 2004 03:03, Chris Payne wrote:
This is OT, really, but because it's an easy answer:
> if ( document.removeitems.del.value == "" )
> BUT because the tickboxes in
Hi there everyone,
I have a form with check boxes and with PHP I use the array feature for the
form name. Now I need to check if the tickboxes are ticked and if not
return an error, normally with javascript I would use:
function validate_form ( )
{ valid = true;
if ( document.removeitems.del
On Tuesday 16 November 2004 11:03, Chris Payne wrote:
> BUT because the tickboxes information is stored in a PHP Array called del[]
> I am having major problems getting it to work. Does anyone know how to
> determine with javascript if any boxes are ticked, when the name for the
> box is an Array
PHP-PEAR Extension JavaScript.
Nikhil.
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 31, 2004 6:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] PHP & Javascript
On Saturday 30 October 2004 12:33, balwantsingh wrote:
> can anybody guide me
On Saturday 30 October 2004 12:33, balwantsingh wrote:
> can anybody guide me how to embed php script into javascript.
You can't.
> actually i am
> using a function in javascript and want that when this fuctions is called
> than some values to be stored in php session so that the values can b
Hi Cohen,
It´s really trivial. You show put a block that tests if a student is
selected, like
0) { ?>
DO SOME STUFF
/* And add this simple feature to select the student passed as parameter */
/* Assuming that the select is inside a form named 'f' */
function selectOption(selectName, value) {
On Sun, 18 Jul 2004 13:24:01 -0700, Marcjon <[EMAIL PROTECTED]> wrote:
> You could use a if/while construct. Something like:
>
>
> if ($_POST['studentselect']){
> $result = mysql_query("SELECT courses FROM students WHERE student_name =
> '" . $_POST['studentselect'] . "'");
>
> while ($row = my
You could use a if/while construct. Something like:
".$row['course']."";
}
}
?>
Basically you would submit the form, and if a student was selected, it
would populate the list with their courses from the database.
--
Marcjon
- Original message -
From: "G. Cohen" <[EMAIL PROTECTE
you are trying to use a php header to redirect... there is no need, just do
it via javscript, and keep your variables where they belong :)
var id;
uid = prompt("Enter your ID","Your ID");
document.location.href = 'ndex.php?uid=' + uid;
easy :)
// -Original Message-
// From: vipin cha