Forms, dynamic fields
Posted: Sun Dec 10, 2006 7:12 pm
Hi,
Is there a way to get all the names of a random form field and put them in an array?
e.g.
A user creates a random form
And with some php code it'll get the form field names.
So i'll have an array with textfield, textarea,checkbox.
Is there a way to get all the names of a random form field and put them in an array?
e.g.
A user creates a random form
Code: Select all
<form id="form1" name="form1" method="post" action="">
<input type="text" name="textfield" /><br />
<textarea name="textarea" cols="10" rows="5"></textarea>
<input name="checkbox" type="checkbox" value="" />
<input name="" type="button" />
</form>So i'll have an array with textfield, textarea,checkbox.