Hi! I'm New!

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

Shaneckel
Forum Commoner
Posts: 48
Joined: Fri Sep 23, 2005 3:46 am
Location: Pittsburgh, PA

Hi! I'm New!

Post by Shaneckel »

Well, I want to learn php, and to be completly honest, I suck at coding. My fellow heterosexual life-mate "shiznatix" told me to sign up then and post something like this (For he is my coder). Then he said some ass would right back with "search noob". He then followed that up with how he got down with some russian chick.


Long story shortened, I need to learn php, and he said this would be the best place to go.

Please help a desperate Designer pull his life of creativity down to your retched learning.

http://www.shaneckel.com

~Quang

(Who did you think designed for shiznatix?, that boy dosen't know the difference between a split comp from a triad)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

8O that is a nomination for bizarre first post if I ever saw one.. with that said... where do you want to start learning? We've got several "php newb" starter threads, this one here (viewtopic.php?t=21400) is probably our best thrown-in-the-pool experience...
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

w00t good glad you finally posted. ok yes the previous reply is going to be good to read and whatnot. the way most people learn is you have to have a problem first, somthing that you want done.

my sugestion is maybe... a send me a email telling me what you think kinda deal. like in your contacts section instead of it giving them your email make it so they just fill out a form and it automatically emails you. this is rather easy and is a good first step.

things you will need to know.

-how to use a html form
-the mail(); function
-simple input checking (make sure they arn't putting things in the email that you don't want in your email)

thats about it. remember, your best friend is going to be the php manual http://www.php.net

make that and post your problems as you go, i know you will have many :wink:
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Welcome to phpdn! -- I'm a designer turned coder too. PHPDN is the best community on the planet for learning PHP....
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Welcome :) I agree with feyd about that being quite a bizzarre first post :P
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

uhuh. *reads again* right.

Well, welcome in any case. ^^;

I've learned most everything I know about php from the manual. Of course, I already knew other languages beforehand, so that helped. ;)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

lots of people from here think it's cool to add me to their messengers ;p and i help whenever i can. so you can give that a shot too.

damn, i'm nice. ;p
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Shaneckel
Forum Commoner
Posts: 48
Joined: Fri Sep 23, 2005 3:46 am
Location: Pittsburgh, PA

Post by Shaneckel »

Coding is not fun.

But I'll learn!

I'm going to redo my site completly because thats how I am. I get bored with it in a matter of hours.

So... I'll learn andrews nutty little contact thing, I'll put the chat in with that. I also need to learn how to do "news" just not as gay as you coders make them look.

I'm reading up, I'll get back to you guys, thanks for the help.

~Quang
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Shaneckel wrote:Coding is not fun.
I've been coding for several years.. and enjoying it. Am I insane ? 8)
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

Jcart wrote:I've been coding for several years.. and enjoying it. Am I insane ? 8)
yes. yes you are
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

Guess I am to, eh? :P
Shaneckel
Forum Commoner
Posts: 48
Joined: Fri Sep 23, 2005 3:46 am
Location: Pittsburgh, PA

Post by Shaneckel »

Thats a damn shame really.
Shaneckel
Forum Commoner
Posts: 48
Joined: Fri Sep 23, 2005 3:46 am
Location: Pittsburgh, PA

Post by Shaneckel »

http://www.shaneckel.com/php/hello2.php

how would you make this so when you post nothing, it would get angry, and scorn you for trying to manipulate it?

Code: Select all

Hi <?php echo $_POST['name']; ?>.
You are <?php echo $_POST['age'];
?> years old.
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post by mickd »

Code: Select all

if(!empty($_POST['name']) && !empty($_POST['age']) {
echo 'Hi ' . $_POST['name'] . '. You are ' . $_POST['age'] . ' years old.';
} else {
echo 'did not fill in name/age';
}
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

An if statement:

Code: Select all

if ($_POST['age'] == "") {
//Get angry!
}
Post Reply