I'm looking to get better at PHP And HTML, and also learn a few new things,including how to code a layout etc
Are there any good websites for these sort of things?
Thanks,
Sam
Printable View
I'm looking to get better at PHP And HTML, and also learn a few new things,including how to code a layout etc
Are there any good websites for these sort of things?
Thanks,
Sam
A good way to improve your php/html is looking at other peoples scripts.
a site like www.atomicoxide.co.uk or www.hotscripts.com would provide you with these scripts.
What u do is look for what it does in the script.
So if it checks if user level = admin look for something like
or w/ePHP Code:if ($user_level == 7)
pixel2life.com but dont copy the tutorials learn from them
Make a HTML page like this
Then make a file called habboxmods.php with this inHTML Code:<form method="post" action="habboxmods.php">Do you like Habbox Mods?<br><input type="text" size="3" name="mods"><br><input type="submit" name="submit" value="Submit"></form>
Now the PHP File BreakdownPHP Code:<?
$mods = "$_POST[mods]";
if ($mods == "yes") {
echo "How dare you";
}
elseif ($mods == "no") {
echo "Go you!";
}
?>
That begins the PHP FilePHP Code:<?
The $mods part makes the line a variable, so you don't have to keep typing $_POST.... all the time. The $_POST[mods] part gets the textbox called mods from the form on the html pagePHP Code:$mods = "$_POST[mods]";
That line is basically saying, if you have typed yes in the form box it will show How dare you! as shown herePHP Code:if ($mods == "yes") {
Under that there isPHP Code:echo "How dare you";
which ends the else statement.PHP Code:}
That is saying if you haven't typed yes in the box, check if you have typed no. If you have thenPHP Code:elseif ($mods == "no") {
ThenPHP Code:echo "Go you!";
that ends the elseif statement and closes the PHP file.PHP Code:}
?>
Basic tutorial
Here is a small list dedicated to XHTML and PHP.
XHTML:
http://www.sitepoint.com/article/htm...perfect-markup
http://www.sitepoint.com/article/htm...eginners-guide
http://www.sitepoint.com/article/future-html-xhtml
http://www.w3.org
http://www.w3schools.com
http://www.sitepoint.com/article/htm...finitive-guide
http://www.sitepoint.com/article/xhtml-introduction
http://www.sitepoint.com/forums/showthread.php?t=428205
http://www.sitepoint.com/forums/showthread.php?t=393445
http://www.sitepoint.com/forums/showthread.php?t=320391
http://www.htmlgoodies.com
http://www.devshed.com
http://www.pixel2life.com
http://www.htmlhelp.com
PHP
http://www.php.net
http://www.mysql.com (i think)
http://www.pixel2life.com
http://www.sitepoint.com/article/php-security-blunders
http://www.sitepoint.com/article/tou...security-image
http://www.sitepoint.com/article/php-mysql-tutorial
http://www.sitepoint.com/article/php...1-installation
http://www.sitepoint.com/article/getting-started-mysql
http://www.sitepoint.com/article/mys...ng-started-php
http://www.sitepoint.com/article/pub...mysql-data-web
http://www.sitepoint.com/article/php...1-1-php-basics
http://www.sitepoint.com/article/object-oriented-php
http://www.sitepoint.com/article/php...gy-3-php-mysql
http://www.sitepoint.com/article/ant...access-control
http://www.sitepoint.com/article/php...gy-2-5-caching