PHP Lead Form Capture - Using Multiple LP's

Fiver

New member
Jan 30, 2009
2,011
12
0
A company made me an LP that takes leads and stores them on a DB on my server. I was wondering if I could simply create another LP with the same form and have those leads go to the same DB? (For example, having male and female LP's for dating.)

If the LP's are both on the same domain, will this work? What do I need to look for in the PHP code to make sure it will?
 


If the DB is on the same domain as the landing pages, yes. If the DB is elsewhere, you might have more difficulty (though it's not impossible). You'd want to look into cURL or JSON to get the job done.
 
It's as easy as simply replicating the LP. Since the Form will stay the same, but the elements around it will change, the form still will go through the same process, and storing onto the DB.
 
The only thing is you may want to add another column/hidden field to note which site it came from but that isn't necessary, just may be useful. That part should only take a few minutes.
 
Yes, just duplicate the form (same action and fields) on your new LPs and the data will go to the same place when it's submitted. What happens to the user however, will also be the same as if they've submitted the original form... not sure if that is a problem.
 
It could cause a problem if the form posts to itself but that's not that likely. Send it over to my email and I'll take a look.