/    Sign up×
Community /Pin to ProfileBookmark

Is PHP What I Want?

Ok. You’ll need to forgive me because I’ve taught myself everything I know, so in other words, I probably don’t know much. I am extremely familiar with HTML coding and I’m just beginning to dive into PHP.

I will explain to you what I want to do and I need SOMEONE to tell me where to go to figure out how to do what I want to do.

I design a website for a golf course. The golf course has many company outings. I want to make a subdomain for each company outing that the company can use as a place to sign up golfers for their tournaments. On the companyouting.golfcourse.com subdomain site, I want to have a form (this is where I think the PHP comes in) that golfers can fill out concerning information about the golfing experience and then be able to pay for their outing, too. Creating the form is easy, so I don’t need help with that, but what I do need help with is that I want the person who is charge of the company’s outing to be able to login to a separate screen that will have a database of all the information that form is gathering. It is THAT problem that I just can’t figure out how to do. I know how to do all kinds of cool things with PHP and forms, but I can’t figure out how to use the MySQL correctly, so that I can keep track of all the different outings, but they won’t be able to see one another’s information.

Any ideas? I hope I explained this well enough to make sense to you! I’d really appreciate any help you can offer!

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@chazzyJan 20.2006 — I'm guessing that this is your first time doing something with form processing.

Yes, PHP can be used, but PHP is not your only solution. Java, ASP (et al.), and Perl would equally solve this problem.

Are you new to programming languages?
Copy linkTweet thisAlerts:
@ageorgeauthorJan 20.2006 — Yes, I'm new.

I've just done lots of simple things with HTML. I just know that what I want to do can't be done with HTML, so I need help figuring out what coding I need to learn to accomplish this.

Any direction would be greatly appreciated!

Allison
Copy linkTweet thisAlerts:
@bokehJan 20.2006 — Well first you need to start with a login system and some pages that only the system admin can access. Have you got any idea how to do that part? The easiest way would just be to protect a directory with .htaccess.

By the way are you creating the subdomains dynamically? If so how are you creating a DNS record for the subdomain and how are you updating httpd.conf or are you using a wildcard in both cases?
Copy linkTweet thisAlerts:
@ageorgeauthorJan 20.2006 — I should apologize for being extremely naive! I may have bitten off more than I can chew, but I just KNOW I can do it if I am steered in the right direction! ?

Here is what I was planning on doing. My server allows me an unlimited number of domains, so I was going to create subdomains for each of these Outing Tournaments. I was just going to set up a DNS server on my main control page for each subdomain. I'm assuming that each subdomain will only be one page, so that shouldn't take up that much space.

The subdomain would have this form on it that the golfers would fill out. Then I want that information to be organized and housed in a directory that is specific for each outing. As far as the security/login issue is concerned, I was planning on creating a directory that would be password protected that the administrator could access from the bottom of the subdomain page. Once they logged in, they'd be able to see the information that is being complied by golfers filling out the form.

Does that make sense? I hope so.
Copy linkTweet thisAlerts:
@NogDogJan 20.2006 — If you've already selected your web hosting company, then question number one is: what scripting/programming and database options do they support?

The PHP/MySQL option certainly can so what you're asking, as can several other combinations. PHP and MySQL have the benefit of being open source. So what you might want to do is download and install [url=http://www.apachefriends.org/en/xampp.html]XAMPP[/url] so you can start experimenting with it locally on your PC.

If you have no programming experience (sorry, HTML is text mark-up, not programming), I'd strongly recommend taking an introductory course or two. It does not have to be in PHP (though of course that would be nice), but something that would teach you the things common to most programming languages: if/else logic, loop constructs, arrays, etc. An introduction to databases and SQL would be very useful, too.

If you're strictly a do-it-yourselfer, browse the book selections at OReilly.com, and dive into the www.php.net web site.
Copy linkTweet thisAlerts:
@ageorgeauthorJan 20.2006 — I know that HTML isn't programming. I was just trying to let you know what I'm familiar with.

I'm just asking what programming you would recommend me using to accomplish what I want to do. Should I use PHP or would something else be better and/or easier. I'd love to be able to take a class, but I have 3 kids and I own a golf course, so that is kind of out of the question. I suppose if they offered a class at 4 in the morning! ha.

My hosting company supports MySQL and I have created a database on it and played around manipulating the database by creating tables and that kind of thing. I understand the if/else and basic logic of php programming.

I just really want to be directed somewhere that I know I'm getting the right information on how to make these crazy forms. ?

Thanks for all your help.
Copy linkTweet thisAlerts:
@ageorgeauthorJan 20.2006 — Thanks. Wish me luck!
×

Success!

Help @ageorge spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...