Acutally, I've just worked out why its not working:
I have multiple button tags on the same page which all do different things
(edit/delete/new...). They are all called 'submit' (name='submit') and have
different 'value' values in order that the receiving script may distinguish
between them:
Hello Richard,
Tuesday, April 20, 2004, 9:55:15 AM, you wrote:
RL Acutally, I've just worked out why its not working:
Other than it not being valid HTML you mean? :)
RL I have multiple button tags on the same page which all do different things
RL (edit/delete/new...). They are all called
In all fairness to IE, it WILL send the value of each button - but PHP
cannot distinguish between them all because you have given them all
the same name! :)
RL Does input type='submit'... allow this sort of functionality?
If it has a unique name, sure:
input type=submit name=something-unique
Hello Richard,
Tuesday, April 20, 2004, 10:17:42 AM, you wrote:
In all fairness to IE, it WILL send the value of each button - but PHP
cannot distinguish between them all because you have given them all
the same name! :)
RL Does input type='submit'... allow this sort of functionality?
If it
From: Richard Lewis [EMAIL PROTECTED]
In all fairness to IE, it WILL send the value of each button - but PHP
cannot distinguish between them all because you have given them all
the same name! :)
RL Does input type='submit'... allow this sort of functionality?
If it has a unique name,
Try something like this:
script language=javascript
function submit_form( type ) {
document.forms['submit_form'].elements['mode'].value = type;
document.forms['submit_form'].submit();
}
/script
form name=submit_form method=
input type=hidden name=mode value=
input
6 matches
Mail list logo