Jquery Ajax and PHP generated dynamically different forms

MrPeabody

New Member
The problem lies with PHP, say I have Jquery and I ask 3 inputs field with a form. Once i submit that form I go through PHP and say I have :\[code\]$_POST['service1']$_POST['service2']$_POST['service3']\[/code\]that's fine. I would hard code these values in the PHP but say I ask for 5 services or 9 services ... I'm stuck trying to figure this out.I thought about one way to do it would be with fopen and fclose and write a file to disk on the server side depending on how many fields I requested. Basicly the app is suppose to grab how many service I need add to it the content for each of these and then generated an SQL query with all of these ... But since the form is dynamic I'm stuck trying to figure out how I would write the PHP side of it.
 
Back
Top