Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Here's are good PHP codes

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Coolprogram

Established Member
Impact
7
Here are 2 codes that kinda work together and become 1. Yet they are 2 seperate things. LOL oh well.
-Coolprogram

awesome.php
PHP:
<html>
<body>
<center>
<h1>Quiz</h1>
</center>
<h3>Which is the correct spelling?</h3>
<br>

<form action="whatever.php" method="POST">
<input type="radio" name="cool" value="Wrong"> heel
<br>
<input type="radio" name="quiz" value="Correct"> heal
<br>
</html>
<br>
<input type="submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Reset All">
</form>

<?php

if($_POST['submit'])
{
$quiz = $_POST['quiz'];

if($quiz == "Correct")
{
echo 'You are Correct';
}
else
{
echo 'Wrong.';
}
}
?>
</body>
</html>

PHP:
<html>
<body bgcolor=white>
<body text=black>
<b>
 <?php echo $_POST["quiz"]; ?>.<br />
Okay If you are correct click<u><a href="whatever.php">here.</a></u></h1></b>
</body>
</html>

whatever.php
PHP:
<html>
<h1>Wasup!!</h1>
<br>
<h3>Thanks for doing this 
-Coolprogram

These codes would make something like this www.programmingplus.info/awesome.php
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
So its basically a quiz?
 
0
Close
That's exactly what it is. Congrats you figured it out. But i need some things before you can call it a good quiz. Oh an that's exactly what this will be. www.tuttorial.com/html.php


EDIT: The new site has different codes, but i dont feel like showing them.
Thanks,
-Coolprogram
 
Last edited:
0
Close
It's a nice start. I'm assuming you're just starting out on PHP?
 
0
Close
Yeah but the cool thing is i hust started like 3days ago learning this.
 
0
Close
That's pretty good for how long you've been learning. I keep trying to get my friends to learn, but they can't even get that far after a week, lol. I guess they just don't have any motivation!
 
0
Close
Hehe yur probably right.It actually is pretty easy when you get the hang of it. Oh and just tell them to use tutorials if they need help or something while programming that's what i did and you memorize the codes quicker.
 
0
Close
Yeah, I got them to read some tutorials, directed them to a few books, and even tried teaching them myself, but I don't think they could be bothered learning it at all. That'd probably be why they couldn't do anything, lol.
 
0
Close
Yeah PHP is one of the best languages you can learn.
 
0
Close
LOL, That's funny man even teaching them yur self wow you are desperate to get them too learn huh. But if they do start doing it they will probably like doing it like even simple things like this www.tuttorial.com/
cp.php
PHP:
<html>
<body>

<form action="cool-2.php" method="POST">
Username:
<input type="text" name="cool" value="My Name Is">
<br>
<input type="submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Reset All">
</form>
</html>

cool-2.php

PHP:
<html>
<body>
$_POST['cool'];?>

I dont have an example any more.
 
Last edited:
0
Close
Oh I didn't realize you made it. If you did than thats really good!
 
0
Close
Thanks.I did have a little help though from somone named SV.(Second Version) but i editted the stuff and the remade it soo i would know how.
 
0
Close
the site is not opening :(
 
0
Close
0
Close
they're cool, good luck with any future php scripts :D
 
0
Close
cool dude ! u rock in PHP scripts. do post if u know more
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Member card: see how many threads a member started
The member card now shows a Threads number, right after Posts. The member card is the box that opens when you point at a name. Profile...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back