iGuest
Members-
Content Count
72,093 -
Joined
-
Last visited
-
Days Won
5
Everything posted by iGuest
-
the best way to start php is probably not adjusting a script IMO - that misses out a stage. - the very first stage - here... Why use php? because it allows things to be generated very quickly - without lots of html pages. It enables users you choose to allow, to input their own content to the pages you want them to. 1) save these files as anyfilename.php - pick your names, upload them to a php enabled server and go to the url they are at... 2) understand <?, ?>, .php, //////, /* */, and ; <??>THis tells the web browser when to expect php coding. So... when writing php, this needs to encase all php code - or it will be formatted as html. Naming a filename .php allows for <? and ?> to be expected - or it will show as html. <?//// hello - this line will be overlooked/* hello these lines will be overlooked*/?> both of these 'hello's' will not be formatted as php - these 2 bits of code exclude the contained text. <?print "hello"?> print tells the php to print the contained text - if a variable is used then ""'s are not usually needed, if "" are used then the content will be shown as html. The above WILL NOT WORK. Each line of php code needs to be ended with a ;. 3) printing basic html <?print 'hello world';?> open the file - it will show the words hello world with no formatting. 4) printing and setting variables <?$hello = 'hello world';///setting variablesprint $hello;///printing variables ?> 5) if else with variables <?$a = $_GET['a'];///setting variables (3)if (isset($a)) {print '<a href="?a=0">Click here</a><br>';///printing html (2)print "a is set to:".$a;} else {print '<a href="?a=1">Click here</a><br>';///printing html (2)print "a is empty";}?> for a form... adjusting my last script from above... 6) create the form html - save as form.php. <?$form = <<<HTML<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Form!</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><form action="?a=1" method="post" name="" id=""> <table width="50%" border="0" align="center" cellpadding="4" cellspacing="0"> <tr> <td width="22%">Subject</td> <td width="78%"><input name="value" type="text" id="value"></td> </tr> </table></form></body></html><br>HTML;?> that basically mates a text box to enter something into - which posts to ?a=1 then save the following as anythingyouwant.php .... load it...and should work as a simple form. <?include 'form.php';///include the form we just made - so that you can print it when you need to.$a = $_GET['a'];///setting variables - has the script been submitted yet? - get the value from the urlif (isset($a)) {///the script has been submitted$value = $_POST['value'];///retrieve the posted data.print '<a href="/?">Click here</a><br>';///printing html - return to script not submittedprint "value is set to:".$value;} else {////form isnt submitted - so print it.print "a is empty<br>";print "therefore include the form<br><br>";///printing html (2)print $form;}?> should work... unless i missed off a ; or something silly (let me know below...if i have) if you want to check the field to make it required - and show a form with a message if its not filled in, then this would be the edited version..... <?include 'form.php';///include the form - so that you can print it when you need to.$a = $_GET['a'];///setting variables - has the script been submitted yet?if (isset($a)) {///the script has been submitted$value = $_POST['value'];///retrieve the posted data.if(isset($value)) {/////////FIELD SET?////////////print '<a href="/?">Click here</a><br>';///printing html - return to script not submittedprint "value is set to:".$value;} else {//////FEILD NOT SET - show form again, with message to fill it out///////print "The required fields are empty<br>";print "therefore include the form<br><br>";///printing html (2)print $form;}} else {////form isnt submitted - so print it.print "a is empty<br>";print "therefore include the form<br><br>";///printing html (2)print $form;}?> then learn mysql and your sorted ----------------------- see database thread
-
I can't understand your question. What do you need? Info about a server or mods?
-
VB wud be good to start with
-
clancy is an awesome author!! - patriot games is my favourite i think. im into John Ghrisham too - he writes law stylee books and agree with the 2 posts above - the bible is cool
-
whats the best place to start if i wanna make a computer programme...i.e. something that does something on when i click it on my desk top?vb? C? C+?^i dont care what the file does.... just need an example which uses if / elsei only really know website codes...so when i have something i wanna make which would be best on a desktop i tend to use php and password it - but thats a crazy way of doing things!
-
FI subice 8) we're using it here.
-
what is your favorite phpbb theme? mine is skylineblue theme. http://www.volize.com/ edited. i have a new favorite theme. take a look this site. you should register to d/l newact theme. http://www.newacts.de/
-
I think u should try AmerivasArmy(http://www.americasarmy.com/)Its really good and free... but u need a good comp for this game thou...But I really think u should try it
-
AcId - Lost reality
-
Wolfenstein ETand it's free
-
Except when you use an 'auto buyer' (it automatically spends your money so no one attacks you...) Yes, he needs me as his commander
-
php is awesome.... mod wise, though i like the simplistic look of IB
-
ive already written one and put it in the script section....
-
cool cool for a form... adjusting my last script from above... 1) create the form html - save as form.php. <?$form = <<<HTML<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Form!</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><form action="?a=1" method="post" name="" id=""> <table width="50%" border="0" align="center" cellpadding="4" cellspacing="0"> <tr> <td width="22%">Subject</td> <td width="78%"><input name="value" type="text" id="value"></td> </tr> </table></form></body></html><br>HTML;?> then save the following as anythingyouwant.php .... load it...and should work as a simple form. <?include 'form.php';///include the form - so that you can print it when you need to.$a = $_GET['a'];///setting variables - has the script been submitted yet?if (isset($a)) {///the script has been submitted$value = $_POST['value'];///retrieve the posted data.print '<a href="/?">Click here</a><br>';///printing html - return to script not submittedprint "value is set to:".$value;} else {////form isnt submitted - so print it.print "a is empty<br>";print "therefore include the form<br><br>";///printing html (2)print $form;}?> should work... unless i missed off a ; or something silly
-
I recommend loggin in every day or so
-
:shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :!: :!: :!: :!: SSR ... im apalled half life was a revolution - and soo much better than any of the fiction stylee quakey engines plantethalflife.com
-
i used to be hugely into counterstrike with my mates, not played much lately cos my internet connection sucks - but broadband is on its way next month woohoo - but im only at home for a month after that :Plooking forward to hl2
-
do you need to play this kind of game on a regular bases or can you jump in every now and then?
-
I really liked to play MOHAA online, but by now it's getting kinda boring. Does anybody know any cool (simular) online games I can try?
-
not really... you could make a quick script that logs it, and your login script probably has room for a last_login and date joined field... so add a field for 'time online' ....add the difference between the current time and the last login everytime someone refreshes a page to the time_online field and then you could make it say how many minutes per week / per month etc they'd been on by.... just an option i guess... though if everyone came online and didnt post anything the forums wouldnt be very active - though there are people who read lots of posts and only reply to ones for which they feel they have something to give - which is useful.
-
The famous Rock In Rio concert recently took place in Lisbon, Portugal, where I'm from. Britney was one of the many 'high' artists that were present, names like metallica, black eyed peas, Paul Mccartney, and many others i can't remember. It was many days of party for all kinds of music tastes. Well, Britney was the only one that did a playback... People got really pissed, everyone there noticed she wasn't singing and people felt fooled. It was a scandal, some people even requested a cashback for the ticket. Me personally, I wouldn't go to any concert of her, even if I get free tickets... but she is pretty and is equiped with a nice package... Basicaly, you said it all, rejoice.
-
do you need a commander? 8)
-
Yep, if you want your site to be viewable on ALL phones, you have to use the WML language (similar to HTML, take a look at http://forums.xisto.com/no_longer_exists/) and also be careful with the page size (for example my previous phone, the first one ever to support WAP, only could deal with pages under cca.1,5 kB size)... But of course, newer phones mostly support either xHTML pages (a "light" version of HTML) or even normal HTML, Javascript etc. just like web browsers (a wonderful thing, really :wink:)
-
there is none.. But I like big posts rather than: request hosting> i need hosting>username: xxxyyyzz>domain mydomain.ext>about your site:It'll be a forum