hey guys…
is a posible to get a variable from <input> without beeing in <form>?
my situation is:
a have a <form> but there i have a multiple rows (as im selection records from sql), so it may look like this:
[code=php]<form>
<input type=text name=name1[]><input type=text name=name2[]> – <input type=submit onclick=”xxxxxxxxx”>
<input type=text name=name1[]><input type=text name=name2[]> – <input type=submit onclick=”xxxxxxxxx”>
<input type=text name=name1[]><input type=text name=name2[]> – <input type=submit onclick=”xxxxxxxxx”>
<input type=text name=name1[]><input type=text name=name2[]> – <input type=submit onclick=”xxxxxxxxx”>
<input type=text name=name1[]><input type=text name=name2[]> – <input type=submit onclick=”xxxxxxxxx”>
<input type=submit>
</form>
so what i would say easiest way to make this works is to set each submit button to onclick to have like this:
[CODE]onclick=”window.location.href=’abc.php?name1=’+bla+’&name2=’+name2″
just this doesnt work ?…
guys please if u have any idea how to make this works, would be awesome ?
EDIT: the thing is to make submit all by one master submit button, but also need to submit each row separatelly…. if you have any other idea how to do that then im open for ideas…. as far as you cant nest forms html than the window.location on onclick sounds as a best idea to do that