View Full Version : Where to start?
sam iz da buz
28-10-2006, 02:30 PM
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
Jackboy
28-10-2006, 02:32 PM
A good way to improve your php/html is looking at other peoples scripts.
a site like www.atomicoxide.co.uk (http://www.atomicoxide.co.uk) or www.hotscripts.com (http://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
if ($user_level == 7)
or w/e
Colin-Roberts
28-10-2006, 02:54 PM
pixel2life.com but dont copy the tutorials learn from them
George Morgan
28-10-2006, 03:13 PM
Make a HTML page like this
<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>
Then make a file called habboxmods.php with this in
<?
$mods = "$_POST[mods]";
if ($mods == "yes") {
echo "How dare you";
}
elseif ($mods == "no") {
echo "Go you!";
}
?>
Now the PHP File Breakdown
<?
That begins the PHP File
$mods = "$_POST[mods]";
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 page
if ($mods == "yes") {
That line is basically saying, if you have typed yes in the form box it will show How dare you! as shown here
echo "How dare you";
Under that there is
} which ends the else statement.
elseif ($mods == "no") {
That is saying if you haven't typed yes in the box, check if you have typed no. If you have then
echo "Go you!";
Then
}
?> that ends the elseif statement and closes the PHP file.
Basic tutorial
DuHast
28-10-2006, 03:17 PM
Here is a small list dedicated to XHTML and PHP.
XHTML:
http://www.sitepoint.com/article/html-37-steps-perfect-markup
http://www.sitepoint.com/article/html-css-beginners-guide
http://www.sitepoint.com/article/future-html-xhtml
http://www.w3.org
http://www.w3schools.com
http://www.sitepoint.com/article/html-xhtml-definitive-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/toughen-forms-security-image
http://www.sitepoint.com/article/php-mysql-tutorial
http://www.sitepoint.com/article/php-amp-mysql-1-installation
http://www.sitepoint.com/article/getting-started-mysql
http://www.sitepoint.com/article/mysql-3-getting-started-php
http://www.sitepoint.com/article/publishing-mysql-data-web
http://www.sitepoint.com/article/php-anthology-1-1-php-basics
http://www.sitepoint.com/article/object-oriented-php
http://www.sitepoint.com/article/php-anthology-3-php-mysql
http://www.sitepoint.com/article/anthology-2-1-access-control
http://www.sitepoint.com/article/php-anthology-2-5-caching
YouFail
28-10-2006, 04:41 PM
Make a HTML page like this
<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>Then make a file called habboxmods.php with this in
<?
$mods = "$_POST[mods]";
if ($mods == "yes") {
echo "How dare you";
}
elseif ($mods == "no") {
echo "Go you!";
}
?>Now the PHP File Breakdown
<?That begins the PHP File
$mods = "$_POST[mods]";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 page
if ($mods == "yes") {That line is basically saying, if you have typed yes in the form box it will show How dare you! as shown here
echo "How dare you"; Under that there is
} which ends the else statement.
elseif ($mods == "no") {That is saying if you haven't typed yes in the box, check if you have typed no. If you have then
echo "Go you!"; Then
}
?> that ends the elseif statement and closes the PHP file.
Basic tutorial
One problem with that. Its case sensitive so if you post Yes or No it'll stay blank.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.