[PHP] Re: lt;buttongt; tag

2004-04-20 Thread Richard Lewis
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:

Re: [PHP] Re: lt;buttongt; tag

2004-04-20 Thread Richard Davey
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

Re: [PHP] Re: lt;buttongt; tag

2004-04-20 Thread Richard Lewis
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

Re[2]: [PHP] Re: lt;buttongt; tag

2004-04-20 Thread Richard Davey
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

Re: [PHP] Re: lt;buttongt; tag

2004-04-20 Thread John W. Holmes
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,

Re: [PHP] Re: lt;buttongt; tag

2004-04-20 Thread Red Wingate
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