our approach
|
new tutorials
|
contact us
PHP Basics In Pictures
Basics
Variables
Numbers
User functions
Logic & Loops
Files
Write a script that generates a whole random number between 1 and 450.
Then have the script advance that number by 1.
Save the script as
randinc.php
in the
PRACTICEPHP
folder on your computer.
Upload it into the
practicephp
directory on the Web server.
Add the paragraph
Generate a random number, plus one
to
practice.html
, and link that paragraph to
randinc.php
.
View
practice.html
in the browser, then click the new link.
Its output should look like this:
<< BACK
NEXT >>