Page 1 of 1

Automatically Creating a New Web Page

Posted: Sun Jan 09, 2011 11:33 am
by tbowlsby
Good Day to All:

This is my first post here, so I apologize upfront for any etiquette violations. Please feel free to point them out.

My Dilemma

I have built a site in WordPress that is a business directory site. The idea is that a business owner will have their own Web page on our site, so that people can come and search by various parameters to locate a business in which to work with.

When a business owner wants to join, they fill out a form with various pieces of information, such as business name, industry, business description, contact information, etc. Once they click the Submit button I need to programmatically (automatically) create a new Web page for their business by pulling the information from the form and re-direct them to said page. I'm currently using a WordPress plug-in called Formidable Pro for the form.

Questions

1) Is this possible?
2) If so, can someone point me in the right direction to accomplish this?

Thank you all for your time in reading this post. Any help or advice will be greatly appreciated.

My best to you,

Todd

Re: Automatically Creating a New Web Page

Posted: Tue Jan 18, 2011 7:07 am
by Peter Kelly
For starters,
Do you mean create a new page on Wordpress?
If not do you use cPanel or Plesk or anything?

We need a few more details.

Re: Automatically Creating a New Web Page

Posted: Tue Jan 18, 2011 10:50 am
by tbowlsby
Not sure how many more details you need. I listed the fact that I built a site in WordPress, so yes, I want to create a new page in WordPress. What other details should I include? I felt this was a pretty detailed descrtiption of what I desire to happen.

Re: Automatically Creating a New Web Page

Posted: Tue Jan 18, 2011 1:40 pm
by danwguy
I am not sure on WordPress but what I would do is create a generic.php file that has all the stuff you want on the page minus the information you are getting from the person filling out the forms, when they fill out the forms and press submit, copy generic.php to $_POST['companyname']; and save all the data they put in those input boxes to a db, then in your generic.php which is now companyname.php use variables to call the customer data from the db and populate the fields. Sorry if that sounds confusing but really it's pretty simple. I can give you an example if you like, provided WordPress even uses mysql. If not, sorry no idea.

Re: Automatically Creating a New Web Page

Posted: Tue Jan 18, 2011 8:57 pm
by tbowlsby
danwguy:

Now we're getting somewhere! :)

Yes, WordPress uses MySQL. It would be great if you could provide the example you alluded to in your post.

Thanks for your time thus far.

Todd