• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

Hidden layer containing form fields doesnt submit after being unhidden and filled out

Hi All,

Hopefully a nice and simple one. I have a form with some hidden layers containing form fields, using css display:none .

These are then unhidden using some javascript that sets the properties of this layer to display:block .

All works well other than, when the form is submitted the data from these fields doesnt apper in the post data, and hence not in the email that the php script it submits to sends out.

best wishes,

David.
0
daveboyle99
Asked:
daveboyle99
1 Solution
 
klykkenCommented:
You have to use the existing protocol for this in HTML:
<input type="hidden" name="yourname" value="yourvalue">

You're trying to create a similar function through CSS and JS which is already in HTML :)
0
 
daveboyle99Author Commented:
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now