Input within DIV with visibility: hidden

2

This is the following, I hid a% w / o%, which has inputs of a form inside, with

style='visibility:hidden; position:absolute'

And I wish these div did not send information when the form was forwarded.

My question is: Can you just do this using JS or is there a simpler and less legible way to do this?

    
asked by anonymous 10.08.2015 / 18:16

1 answer

1

to hide fields from a form use

<input type="hidden" name="NomeDoInput">

Instead of doing this via CSS. if you do not want the data in a form to be sent to another page using form , leave these inputs out of the form or if you prefer:

unset($_POST['nomeDoCampo']); //Com PHP

If this data has already been sent.

    
10.08.2015 / 18:22