Hacker News new | ask | show | jobs
by agento 5456 days ago
As much as I despise PHP, I think it's a valid language for taking your first steps in.

From your post it's not easy to tell what you're exactly having trouble with, but I suspect it's a general feeling of being lost.

Be aware that for your project you probably need to read up a bit/learn a little of the following:

- Programming basics: Variables, types, expressions and statements, control flow (loops, if/else)

- Web development basics: HTML and CSS to build your pages, a little knowledge about HTTP can't hurt either (GET vs. POST for you form, maybe Basic-Authentication). PHP will take care of the gritty details here

- Not sure if you want to store your forms in a database. If you do, you'll have to look for a php/mysql tutorial. There should be plenty around the web.

- Finally you need to set up some kind of development environment. WAMPserver comes with everything you need. On Mac there's MAMP, which is easier in the beginning than setting it up on your own.

Don't expect this to go fast. There's a lot of reading and playing around involved. If you start enjoying this and feel comfortable in PHP, you should look for a different language though. While PHP is comfortable to learn and good for first steps, I think it's actually counterproductive to try to build anything bigger with it.

The PHP ecosystem is poised with mediocrity and bad code. While it's actually possible to write good code in PHP, it's hard to find examples of good programming and the languages horrible design makes it actually difficult (though not impossible) to express yourself well and write good code.