School Map:
Home / Enroll
$ Student Records; Class
$ News @ LIVE
Tech Radio * Support/FAQ
| Store | FORUMS
(#373 2003-11-10 17:59:08) Post Reply |
|
Arrio
|
<HTML>
<HEAD> <TITLE>Assignment</TITLE> </HEAD> <BODY> <? // my info $name = Arrio; $favsite = http://www.google.com; // telling it to say my name and my fav. site print (My name is $firstname , and my favorite site is $favsite.); ?> </BODY> </HTML> |
(#374 2003-11-10 18:05:16) Post Reply |
|
Arrio
|
i kinda forgot the " in it, here is the better one
<HTML> <HEAD> <TITLE>Assignment</TITLE> </HEAD> <BODY> <? // my info $name ="Arrio"; $favsite ="http://www.google.com"; // telling it to say my name and my fav. site print (My name is $firstname , and my favorite site is $favsite.); ?> </BODY> </HTML> |
(#376 2003-11-15 22:00:50) Post Reply |
|
tassyrose
|
|
(#378 2003-11-16 12:09:16) Post Reply |
|
coinweb
|
<html>
<head> <title>Homework for Week #1</title> </head> <body bgcolor="yellow"> <?php //Homework Lesson for Week #1 //First Name $first = '<b><font color="blue">Jeff</font></b>'; //Last Name $last = '<b><font color="red">Workman</font>'; //Nickname $nick = '<b><font color="green">Coinweb</font>'; //Website $web = '<a href="http://www.coinwebstore.com">http://www.coinwebstore.com</a>'; //Now I'll put it all together //This is what will be displayed in your browser! print ("<b>Hello, my name is $first $last.<br>But you can call me $nick ,<br>Please visit my website - $web.</b>"); ?> </body> </html> |
(#381 2003-11-17 13:11:53) Post Reply |
|
PureGrain
|
[CODE]
<HTML> <HEAD> <TITLE>Assignment 1</TITLE> </HEAD> <BODY> // Week One //Assigning the variables <?php $mYnick = "PureGrain"; $mYsite = "http://www.completronics.com"; /php?> //Printing to browser. <?php print ("Hello my nick name is $mYnick <BR>My website is $mYsite. <BR>Which is not working at the moment!!;) php?> </BODY> </HTML> Please tell me if this is ok. I just started learning this today. [/CODE] |
(#382 2003-11-17 13:14:17) Post Reply |
|
RamblnRick
|
Hi, I started this course once long ago. Here I am starting over.
[PHP] <?php // This script will display my name and favorite website // Assign Variables $firstname='Ramblin '; $lastname='Rick'; $favsite='<a href="http://www.scriptschool.com">ScriptSchool'; // Print to browser print("Hello! My name is $firstname $lastname.<br>My Favorite website is $favsite"); ?> [/PHP] |
(#383 2003-11-17 13:21:33) Post Reply |
|
PureGrain
|
I am correcting what I think is wrong with my last post.
<HTML> <HEAD> <TITLE>Assignment 1</TITLE> </HEAD> <BODY> // Week One //Assigning the variables <?php $mYnick = 'PureGrain'; $mYsite = 'http://www.completronics.com'; ?> //Printing to browser. <?php print ("Hello my nick name is $mYnick <BR>My website is $mYsite. <BR>Which is not working at the moment!!;) ?> </BODY> </HTML> Please let me know if it is right? |
(#387 2003-11-17 18:29:48) Post Reply |
|
Topher
|
<HTML>
<HEAD><TITLE>Learning PHP</title></head> <BODY> <? //This code is being made to display my name and favorite website //This is the string for my name $name="Topher"; //This is the string for my favorite website $website="http://www.musicfreaksonline.com"; //This is the print line where I place the strings to display them print("My name is $name and my favorite website, that I also built myself, is $website"); ?> </body> </html> |
(#394 2003-11-20 16:05:51) Post Reply |
|
TDavid
|
Welcome to the new students taking the course :) |
(#395 2003-11-20 18:49:30) Post Reply |
|
mizmerry
|
When I save the file in Wordpad, I get some weird characters at the top; I don't get that in Notepad.
<? // Introductory statement printf(Hi, my name is ); // My name $my_name=MizMerry; print($my_name); // 2nd statement printf(, and one of my favourite sites is ); // URL $fav_url=www.moby.com; print($fav_url); ?> |
(#396 2003-11-21 14:57:24) Post Reply |
|
Quicksaver
|
dont save it to wordpad then :) |
(#398 2003-11-21 18:21:01) Post Reply |
|
hatiangeek
|
<?php
// This string varialbe is used to store my name $myName="HaitianGeek"; //Wbsite stores my favorite website $Wbsite1="Akolad.com"; $Wbsite2="http://www.expresswebsite.com"; // print my name and my favorite website using the print function print("My name name is: "); print($myName); print(", and my favorites websites are: " ); print($Wbsite1); print(", and "); print($Wbsite2); ?> |
(#403 2003-11-25 01:04:36) Post Reply |
|
hyspeed1
|
<HTML>
<HEAD> <TITLE>The Hyspeed1's Comeback, Assignment 1</TITLE> </HEAD> <BODY> <? //This will show my name and website using variables //assign the variables $firstname="Jim"; $lastname="Embrey"; $nickname="hyspeed1"; $prayer="please php gods let the script work"; $living="My lovely wife Angela, and my son Andrew"; $website="www.h1cc.net"; //Print command to display information into a browser print("Hi, I'm $firstname $lastname also known as $nickname, and I'll throw in a random plug for $living, oh and by the way my website is $website " ); //Prayer to see if code worked print("$prayer"); ?> </BODY> </HTML> |
(#406 2003-11-28 02:17:09) Post Reply |
|
DJRemiasz
|
<?
$DJ = "DJRemiasz"; $site = "http://www.stuff4u.risata.org"; //Below is the site name print("Hey Wassup my name is $DJ and I manage the site $site"); ?> |
(#412 2003-12-10 03:56:36) Post Reply |
|
junwei
|
<script language="php">
$myname = "Junwei"; // my first name $mynick = "jw"; // my initial or nick $myfavoriteweb = "http://www.google.com"; // my favorite website printf("My name is $myname.<br>"); printf("My nickname is $mynick.<br>"); printf("My favorite website is <a href=$myfavoriteweb target='new'>$myfavoriteweb</a>.<br>"); </script |
(#413 2003-12-10 08:23:18) Post Reply |
|
fudded
|
|
(#425 2003-12-23 13:19:11) Post Reply |
|
JayWilson
|
<html>
<head> <title>Script School Week 1</title> </Head> <body> <?php //This is a comment, the lines below are strings $MYNAME = Jay $WEBSITE = www.HappyHacker.org //The line below will print to the webpage print(My name is $MYNAME, and my favorite website is $WEBSITE.) ?> </body> </html> |
(#427 2003-12-25 12:15:02) Post Reply |
|
TylerTT
|
|
(#428 2003-12-26 00:24:36) Post Reply |
|
n2o2k
|
<html>
<? /* * To do Assignement #1 */ //Store the name $name="life"; //store my favorite url $url="www.hotmail.com"; //print the name and the favoritr url echo("My name is ".$name. " <br>My favorite url is <a href=\"http://".$url."\">".$url."</a>"); ?> </html> |
(#430 2003-12-26 12:34:43) Post Reply |
|
TDavid
|
Welcome to the course, n2o2k. You do not need to use concatenation with those variables enclosed in double quotes (this is called interpreted). |
(#432 2003-12-27 18:38:47) Post Reply |
|
n2o2k
|
ok! |
(#454 2004-01-07 19:29:23) Post Reply |
|
Alex88
|
<?
// week 1 assignmnet $name = "Alex88"; // faorite url $favURL = "www.ferreira.com" print($name);($favURL); ?> Don't have the means to test the code yet, but how does it look? Thanks |
(#455 2004-01-08 02:07:39) Post Reply |
|
Zeyix
|
This is my very first time ever using PHP and this code i have hear didn't seem to work on my server. :(
|
(#456 2004-01-08 18:33:56) Post Reply |
|
Zeyix
|
I see what i did wrong now.
|
(#457 2004-01-09 18:53:22) Post Reply |
|
Ash2k4
|
|
(#461 2004-01-11 13:31:51) Post Reply |
|
brad
|
First Assignment :)
|
(#462 2004-01-11 13:34:10) Post Reply |
|
brad
|
Whoops didint mean to post the
Ignore it Thanks |
(#463 2004-01-13 08:12:02) Post Reply |
|
Sety
|
<?
print("What's up , motherfuckers"); print " GIA !!! print() also works without parentheses."; print "First line... second line....Do you see something special man?"; print "First line...second line.This damn lines don't want to change!!!HAHAHA"; // Listen man !!! Did you know that you can use variables inside of a print statement ? $myname = "Sety Power"; $mysite = "www.sety.go.ro"; print "My name moderfuckers is $myname"; // My name moderfuckers is Sety Power // Take that rats !!! Using single quotes will print the variable name, not the value print 'Sety is $myname'; // Sety is $myname // Notice that giantrats !!! When you print a string you do not need the quotes surrounding the string print($mysite); // www.sety.go.ro PLEASE teacher...don't delete this post!!! Damn...is all I can!!! I promis to be a good student!!! CYA lesson 1,damn it!!! ?> |
(#464 2004-01-13 15:55:46) Post Reply |
|
vladdrac
|
<html>
<head> <title> <?php echo " PHP page"?> </title> </head> <body> <?php $first="Vlad"; $last="Drac"; $email="<a href='mailto:0vladdrac@aol.com'>here</a>"; $url="<a href='http://www.geocities.com/ruffryder23_2002'>VladdracWorld</a>"; print("whassup fools? <br />My name is $first$last. <br />You can email me $email. <br /> Visit my website at $url."); ?> </body> </html> oh, my editor is not php freindly, by the way how do you post is color? |
(#465 2004-01-13 16:11:50) Post Reply |
|
vladdrac
|
ok thanks TD, could you remove the previous? |
View Previous Thread Print This Page |
School Map:
Home / Enroll
$ Student Records; Class
$ News @ LIVE
Tech Radio * Support/FAQ
| Store
Advertising
| Link To Us | Privacy
Copyright 2000-2002 Script School Productions / KMR
Enterprises
No part of this website may be reproduced, copied and/or distributed
in any medium
without express written permission