Automatically Creating a New Web Page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tbowlsby
Forum Newbie
Posts: 3
Joined: Sun Jan 09, 2011 11:10 am

Automatically Creating a New Web Page

Post 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
Peter Kelly
Forum Contributor
Posts: 143
Joined: Fri Jan 14, 2011 5:33 pm
Location: England
Contact:

Re: Automatically Creating a New Web Page

Post 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.
tbowlsby
Forum Newbie
Posts: 3
Joined: Sun Jan 09, 2011 11:10 am

Re: Automatically Creating a New Web Page

Post 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.
danwguy
Forum Contributor
Posts: 256
Joined: Wed Nov 17, 2010 1:09 pm
Location: San Diego, CA

Re: Automatically Creating a New Web Page

Post 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.
tbowlsby
Forum Newbie
Posts: 3
Joined: Sun Jan 09, 2011 11:10 am

Re: Automatically Creating a New Web Page

Post 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
Post Reply