More than one html form in a php file -
i have php , html based tool has form that, when submitted, outputs data reformatted using echo commands.
i'd add 2nd form same page output using echo.
my issue is, when submit 2nd form first forms output disappears. i'd make echo output first form not go away when 2nd form submitted both on screen @ same time.
is there way can this?
only 1 <form>
block in page can submitted @ single time. <input>
fields defined in 1 form not submitted when other form submitted.
e.g.
<form> <input type="text" name="foo" /> <input type="submit" /> </form> <form> <input type="text" name="bar" /> <input type="submit" /> </form>
clicking on submit submit either foo
field, or bar
field. not both. if want both fields submitted, have either build them single form:
<form> <input type="text" name="foo" /> <input type="text" name="bar" /> <input type="submit" /> </form>
or use javascript copy data 1 form another.
Comments
Post a Comment