Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » HTML
Re: HTML [message #353168 is a reply to message #353104] Sat, 04 October 2008 10:25 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
Distrbd21 wrote on Sat, 04 October 2008 09:53

Goztow wrote on Fri, 03 October 2008 01:25

PHP and html combo, name the file test.php:
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
if ($_POST['name'] == "announced") {
echo "announced was spelled correctly";
}else{
echo "announced was not spelled correctly";
}
}else{
echo "<form method=POST action='test.php'>
<INPUT TYPE='hidden' NAME='submit' VALUE='lalalalala'>
How do you spell announced?
<BR>
<INPUT TYPE='text' NAME='name'>
<br><br>
<INPUT TYPE='submit' VALUE='Login'> 
</form>";
}



Show's this in explore
if ($_SERVER['REQUEST_METHOD'] == 'POST'){ if ($_POST['name'] == "announced") { echo "announced was spelled correctly"; }else{ echo " announced was not spelled correctly"; } }else{ echo "


Would i have to upload the file somwhere?

when i hit the login button it says page cannot be displayed.


And i do google all the time and i looked at alot of site's befor i came here.






You have to put <?php at the start and ?> at the end to activate PHP mode on the file. Also make sure the file has a .php extension.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Sat, 04 October 2008 10:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Qantas Airlines: Repair Divison
Next Topic: Now that Tiberium is canceled...
Goto Forum:
  


Current Time: Sat Aug 03 15:15:18 MST 2024

Total time taken to generate the page: 0.00919 seconds