I want to start trying PHP.
Could someone name one of the easiest PHP scripts that would be good for beginners?
Also, other then w3schools are there any good PHP tutorial websites?
I want to start trying PHP.
Could someone name one of the easiest PHP scripts that would be good for beginners?
Also, other then w3schools are there any good PHP tutorial websites?
umm techtuts.com
Well....
My first script ever was my PhP My-Admin. You can download it and take a look:
http://quickscriptz.ca/v3/freebies-admin.php
More Tuts:
http://www.tizag.com/phpT/
Last edited by QuickScriptz; 07-11-2007 at 01:47 AM.
pixel2life.com
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
I've just looked at some explaining, my code so far is very lame.
I'm creating a register themed thing. Im having problems with one code though.
Code:
The error is: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/habboboa/public_html/wlphp/passemail.php on line 20PHP Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
// retrieve form data
$email = $_POST['email'];
// check entered value and branch
if ($email = @hotmail.com) {
echo 'Sorry, we do not accept @hotmail.com users!';
}
else {
echo "On to the next step....
<form action="username.php" method="post">
Enter desired username: <input name="username" size"20">
</form>";
}
?>
</body>
</html>
Line 20 is the line that has "<form action="username.php" method="post">".
Help appreciated.
PHP.net is a fantastic resource. CHeck out the comments for functions, will save you a lot of time.
http://www.phpbuilder.com and http://www.good-tutorials.com are good also.
change line 20 to <form action=\"username\" method=\"post\">I've just looked at some explaining, my code so far is very lame.
I'm creating a register themed thing. Im having problems with one code though.
Code:
The error is: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/habboboa/public_html/wlphp/passemail.php on line 20PHP Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
// retrieve form data
$email = $_POST['email'];
// check entered value and branch
if ($email = @hotmail.com) {
echo 'Sorry, we do not accept @hotmail.com users!';
}
else {
echo "On to the next step....
<form action="username.php" method="post">
Enter desired username: <input name="username" size"20">
</form>";
}
?>
</body>
</html>
Line 20 is the line that has "<form action="username.php" method="post">".
Help appreciated.
my sig ran away,
Try thatCode:
PHP Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
// retrieve form data
$email = $_POST['email'];
// check entered value and branch
if ($email = @hotmail.com) {
echo 'Sorry, we do not accept @hotmail.com users!';
}
else {
echo "On to the next step....
<form action=\"username.php\" method=\"post\">
Enter desired username: <input name=\"username\" size\"20\">
</form>";
}
?>
</body>
</html>![]()
That didnt work, no matter what you input for the email it says no @hotmail.com users.
Want to hide these adverts? Register an account for free!