Hi All,
Thank you for taking the time to look at this problem, its been bugging me for a few days now.
What im looking to do is create a contact form with a difference, i want to be able to in my admin area, the ability to create unlimited forms, but of different types.
I have a basic knowledge of PHP but cant get my head round this.
So, from admin area i want to click on "create a form" page and be prompted with a page on the lines of this.
<html>
<head>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<div id="myform">
<!-- Insert data here
So something like,
-->
<p>< type="Submit" Name = <input type="text" name="1" id="1" value="Name"> ID = <input type="text" name="2" id="2" value="ID"> Value = <input type="text" name="3" id="3" value="Value">
></p>
<p>
< type="Submit" Name = <input type="text" name="4" id="4" value="Name"> ID = <input type="text" name="5" id="5" value="ID"> Value = <input type="text" name="6" id="6" value="Value">
>
</p>
</div>
<input type="submit" name="button" id="button" value="Add Input Box" />
<input type="submit" name="button2" id="button2" value="Add Text Area" />
<input type="submit" name="button3" id="button3" value="Add Hidden Box" />
<input type="submit" name="button4" id="button4" value="Add Select Box" />
<!-- within the select box, drop down when its added, i want to be able to add options as well -->
</form>
</body>
</html>
Im not sue if im clear enough.
But the data inside the <p> tags needs to be stored in a MYSQL database, now im not sure how to do this.
do i do something like this?
ID - form_ID - Type - Name - input_ID - value - selected
That will mean that, i can just return all of those values to build the form that i select the ID for..
but coding all of this is a bit beyond me.
I hope all is well,
Daniel.