Welcome Guest, Not a member yet? Register   Sign In
One form, many actions
#5

[eluser]alpar[/eluser]
yuu could add a simple javascript function thet would ease your job.

something like

function submit(form,action)
{
form.action = action;
form.submit();
}

and the yiu will have something like <input type="button" onclick="submit(this,'delete')" /> and you can add an action to each of thease buttons one for delete and other for other actions, this is more clear than a server side solution, if you have a single buton, you could also add javascript, i am not an exper and i don't guarantee that the above function works as it, i don't have time to tst it... but somehing simmilar will do


Messages In This Thread
One form, many actions - by El Forum - 08-19-2007, 05:57 AM
One form, many actions - by El Forum - 08-19-2007, 11:54 AM
One form, many actions - by El Forum - 08-19-2007, 12:17 PM
One form, many actions - by El Forum - 08-19-2007, 12:19 PM
One form, many actions - by El Forum - 08-20-2007, 02:45 AM
One form, many actions - by El Forum - 08-20-2007, 04:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB