How to make multiple forms with shared fields without using javascript?
<input type=text name=username />
<form action="/users">
... some fields ...
</form>
<form action="/admins">
... some another fields ...
</form>
How to make multiple forms with shared fields without using javascript?
<input type=text name=username />
<form action="/users">
... some fields ...
</form>
<form action="/admins">
... some another fields ...
</form>
I don't think this is possible. For your purposes, the input tag must be inside a form tag. Furthermore, you can't nest different form tags inside each other, so there is no way to solve your problem without using JavaScript.
If you want to use JavaScript, you could provide both forms with an editfield with the same name and write JS to sync the both.
In jQuery, you would do it like this:
$('input[name="username"]').change(function() {
$('input[name="username"]').val($(this).val());
});
(this is just off the top of my head...you could still do it more pretty)