 |
| Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more. |
|
 |
|
09-10-2006, 12:22 PM
|
#1 (permalink)
|
|
Member
Join Date: 05-18-06
Posts: 110
Latest Blog: None
|
I want to learn php
hi. I am starting on a project, and I need php lessons. mostly I need to learn the "if" codes. like if a user selected yes in a form to "do you want music playing?" then it would play music, but if they sayed no, then it wouldent.
thanks. 
|
|
|
09-13-2006, 06:08 PM
|
#3 (permalink)
|
|
Member
Join Date: 05-18-06
Posts: 110
Latest Blog: None
|
Quote:
|
Originally Posted by Avinash
|
hi, and thanks. but still, when I read the tutorial and test it with a form, I make a form and put the action to message.php, then when I enter "hi" in the from and click enter it goes to message.php and theres nothing there. heres the script:
form.html:
Quote:
<html>
<head></head>
<body>
<form action="message.php" method="post">
Enter your message: <input type="text" name="msg" size="30">
<input type="submit" value="Send">
</form>
</body>
</html>
|
and message.php:
Quote:
<html>
<head></head>
<body>
<?php
// retrieve form data
$input = $_POST['msg'];
// use it
echo "You said: <i>$input</i>";
?>
</body>
</html>
|
so whats wrong?
|
|
|
09-13-2006, 06:41 PM
|
#4 (permalink)
|
|
v7n Mentor
Join Date: 04-07-06
Location: Manchester, NH
Posts: 722
|
that works if you put all of it in message.php and you're running on a server that supports php.
|
|
|
09-20-2006, 12:06 AM
|
#5 (permalink)
|
|
v7n Mentor
Join Date: 08-23-06
Posts: 1,582
|
Quote:
|
Originally Posted by mybluehair
so whats wrong?
|
Did you try again as CB said?
|
|
|
09-20-2006, 09:30 AM
|
#6 (permalink)
|
|
Junior Member
Join Date: 09-20-06
Posts: 4
Latest Blog: None
|
Hi! I present the large Russian firm by web-designing. Who can prompt middle prices of web-site's making. For us this price is about $1000 on condition of high-quality project. As you can estimate our chances of entrance to Your market. thank you for advise!
|
|
|
09-10-2006, 01:06 PM
|
#7 (permalink)
|
|
v7n Mentor
Join Date: 06-04-06
Location: Northern Ireland
Posts: 481
Latest Blog: None
|
Hi mybluehair. There are lots of tutorials and information on the net these days for PHP and judging by your reply you know a little bit of PHP, yes?
Well when I was learning PHP I had a good knowledge of Visual Basic and Javascript so I knew how programs/scripts where structured, if you are the same and know how they work then I recommend you just use the official php.net website. ( http://www.php.net) and just search for any command you want to know how to use.
However, if you are a complete beginner then may I recommend you check out w3schools.com. Personally I have never had to use them, but I have had a look at their stuff and feel that a complete novice on the subject can really be helped by that website.
If you have any furthur problems, feel free to send me a little PM and I'll be more than happy to help you out with certain commands and structures
Mark
__________________
Message me for PHP | HTML | CSS | JAVASCRIPT | .NET | MySQL help and support
|
|
|
09-11-2006, 01:11 PM
|
#8 (permalink)
|
|
Member
Join Date: 08-19-06
Posts: 117
Latest Blog: None
|
You might also what to try the actual PHP site I think its php.org or something like that.
|
|
|
09-11-2006, 04:57 PM
|
#9 (permalink)
|
|
Member
Join Date: 06-01-06
Location: United Kingdom
Posts: 74
Latest Blog: None
|
Quote:
|
Originally Posted by autoecart
You might also what to try the actual PHP site I think its php.org or something like that.
|
I think MegaMoose suggested that (PHP.net) but it has a brilliant manual, also you could check SitePoints articles as Kevin Yank writes a good Database Website book and articles.
Also why not pay for http://www.lynda.com as they have amazing video tutorials and I purchased one off eBay for PHP and it's brilliant, not too indepth but extremely simple to understand in the way you put it.
By the way if your on Windows and want to install Apache, PHP, mySQL then use WAMP it's the easiest. =]
|
|
|
09-11-2006, 05:04 PM
|
#10 (permalink)
|
|
v7n Mentor
Join Date: 08-23-06
Posts: 1,582
|
Why are you people misguiding him/her by pointing him/her to lynda.com?
Even the dumbest person will learn PHP in a day following the PHP 101 tutorial series @Zend
|
|
|
09-11-2006, 05:07 PM
|
#11 (permalink)
|
|
Member
Join Date: 06-01-06
Location: United Kingdom
Posts: 74
Latest Blog: None
|
Quote:
|
Originally Posted by Avinash
Why are you people misguiding him/her by pointing him/her to lynda.com?
Even the dumbest person will learn PHP in a day following the PHP 101 tutorial series @Zend
|
Perhaps but still the thread creater I am sure wanted more than one suggestion, the Zend tutorials may be your personal reccommendation but other people are submitting theirs i'm sure on their personal basic.
Thats why I have put Lynda there as I picked one up cheap on eBay and it helped me, as did Kevin Yanks books and the PHP manual.
|
|
|
09-11-2006, 05:57 PM
|
#12 (permalink)
|
|
v7n Mentor
Join Date: 08-23-06
Posts: 1,582
|
Quote:
|
Originally Posted by Net-Margin
the Zend tutorials may be your personal reccommendation but other people are submitting theirs i'm sure on their personal basic.
|
The point was about pointing to a commercial system when there are thousands of great PHP tutorials available on the net for free.
|
|
|
09-11-2006, 07:57 PM
|
#13 (permalink)
|
|
v7n Mentor
Join Date: 02-16-06
Posts: 2,523
|
Quote:
|
Originally Posted by Avinash
The point was about pointing to a commercial system when there are thousands of great PHP tutorials available on the net for free.
|
have a cookie...
|
|
|
09-11-2006, 08:00 PM
|
#14 (permalink)
|
|
v7n Mentor
Join Date: 08-23-06
Posts: 1,582
|
Quote:
|
Originally Posted by cimmeron
have a cookie...
|

|
|
|
09-11-2006, 07:46 PM
|
#15 (permalink)
|
|
Member
Join Date: 03-14-06
Posts: 68
Latest Blog: None
|
phpfreaks.com has some great tutorials on php.
|
|
|
09-11-2006, 08:02 PM
|
#16 (permalink)
|
|
v7n Mentor
Join Date: 02-16-06
Posts: 2,523
|
|
|
|
09-11-2006, 09:38 PM
|
#17 (permalink)
|
|
v7n Mentor
Join Date: 03-09-05
Location: forums.seo.com
Posts: 934
|
If you want to learn If statements in PHP then learn JavaScript.
|
|
|
09-12-2006, 10:17 AM
|
#18 (permalink)
|
|
v7n Mentor
Join Date: 02-16-06
Posts: 2,523
|
I found that looking at other people's code is helpful in understanding things, as well.
|
|
|
09-12-2006, 01:20 PM
|
#19 (permalink)
|
|
Member
Join Date: 03-14-06
Posts: 68
Latest Blog: None
|
Why not buy a book that has complete PHP scripts as examples as well? Those helped me quite a bit by going through the entire process of writing the script, so you can understand the process and the logic behind it.
|
|
|
09-15-2006, 07:47 AM
|
#20 (permalink)
|
|
Member
Join Date: 08-02-06
Location: Sweden
Posts: 30
Latest Blog: None
|
Quote:
|
Originally Posted by mybluehair
... I am starting on a project, and I need php lessons ...
|
I think the site Good PHP Tutorials could be a good starting point for learning PHP.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 07:45 PM.
© Copyright 2008 V7 Inc Powered by vBulletin Copyright © 2000-2009 Jelsoft Enterprises Limited.
|
|
|