• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 20:34
CET 02:34
KST 10:34
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3
StarCraft 2
General
RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Tenacious Turtle Tussle 2025 RSL Offline Finals Dates + Ticket Sales! Sparkling Tuna Cup - Weekly Open Tournament StarCraft2.fi 15th Anniversary Cup
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ How Rain Became ProGamer in Just 3 Months [BSL21] RO8 Bracket & Prediction Contest BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[ASL20] Grand Finals [BSL21] RO8 - Day 2 - Sunday 21:00 CET [BSL21] RO8 - Day 1 - Saturday 21:00 CET Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers Game Theory for Starcraft Fighting Spirit mining rates Current Meta
Other Games
General Games
The 2048 Game Dawn of War IV Path of Exile Stormgate/Frost Giant Megathread Awesome Games Done Quick 2026!
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread YouTube Thread European Politico-economics QA Mega-thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
How Sleep Deprivation Affect…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1439 users

HTML/PHP help?

Blogs > M155_G33k
Post a Reply
M155_G33k
Profile Blog Joined March 2010
United States470 Posts
October 03 2011 23:09 GMT
#1
So for my html class we have to make a web page. I came up with this really cheesy idea for pranks and stuff. Well, I wanted to have a page for submissions and to have those emailed to me so I can post them later on. However, the pages aren't friggen working and I've gone through the code so much, that I am just about to DEGAF T_T When you hit the submit button, you get the "This page cannot be displayed yadda yadda -- http error 405"

I dont know if its an internal server error or my codes are wrong, but any explanation would be great.


Here is the web page: http://it-web.nhti.edu/student41/submit.html


Here is the code for the submission page:

+ Show Spoiler +

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Submit Your Stories</title>
<style type="text/css">
.auto-style1 {
text-align: center;
}
</style>
</head>

<body background="background.jpg" link="white" vlink="white">

<table bgcolor="black" border="5" width="80%" align="center">
<tr><td>

<font color="white">

<h1 class="auto-style1" align="center" id="top">Submit Your Stories</h1>
<center>
<font size="3" color="#ffffff">
<a href="default.aspx">Home Base</a> | <a href="past.html">Past Missions</a> | Submit Your Stories
</font>
</center>
<hr width="80%" size="5" color="red" noshade />
</font>

<font color="white">

<form action="send-mail.php" method="post">
Name:<br />
<input type="text" name="name" value="" maxlength="100" /><br />

Story:<br />
<textarea rows="10" cols="50" name="comments"></textarea> <br />

<input type="submit" value="Submit" />
</form>

</font>

<hr width="80%" size="5" color="red" noshade />

<center>
<font size="3" color="#ffffff">
<a href="default.aspx">Home Base</a> | <a href="past.html">Past Missions</a> | Submit Your Stories

</font>
</center>

<br />
</td></tr>
</table>

</body>

</html>


And here is the PHP code:
+ Show Spoiler +

<?php
/*
This first bit sets the email address that you want the form to be submitted to.
You will need to change this value to a valid email address that you can access.
*/
$webmaster_email = "m155g33k@gmail.com";

/*
This bit sets the URLs of the supporting pages.
If you change the names of any of the pages, you will need to change the values here.
*/
$submit = "submit.html";
$error_page = "error_message.html";
$thankyou_page = "thank_you.html";

/*
This next bit loads the form field data into variables.
If you add a form field, you will need to add it here.
*/
$name = $_REQUEST['name'] ;
$comments = $_REQUEST['comments'] ;


// If the user tries to access this script directly, redirect them to the feedback form,
if (!isset($_REQUEST['name'])) {
header( "Location: $submit" );
}

// If the form fields are empty, redirect to the error page.
elseif (empty($name) || empty($comments)) {
header( "Location: $error_page" );
}

// If email injection is detected, redirect to the error page.
elseif ( isInjected($name) ) {
header( "Location: $error_page" );
}

// If we passed all previous tests, send the email then redirect to the thank you page.
else {
mail( "$webmaster_email", "Feedback Form Results",
$comments, "From: $name" );
header( "Location: $thankyou_page" );
}
?>


Any help would be so appreciated. I just hope it's not something stupid lol

(and so help me if it is something stupid like a wrong case letter T_T)


Thanks everyone

"It can't be a NE Lan without any problems!" ~ "Starcraft is like sex. After a rough round, sometimes you just need that cigarette."
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
October 03 2011 23:24 GMT
#2
You're trying to use PHP but your web server is Microsoft IIS, are you sure PHP is supported and allowed on the server? The "method not allowed" means the server is denying your POST request, probably because it isn't configured to run scripts.
AdministratorTwitter: @R1CH_TL
TL+ Member
Phtes
Profile Blog Joined October 2010
United States370 Posts
Last Edited: 2011-10-03 23:25:21
October 03 2011 23:24 GMT
#3
edit: r1ch beat me to it lol
I'm Your Phtes o.0 **SKT1 For Life!**
M155_G33k
Profile Blog Joined March 2010
United States470 Posts
October 03 2011 23:41 GMT
#4
*sigh* Yah I just found out. It seems that the teacher thought it was. Did a whole class on PHP. He told us today to post it to our account on the server. He called the network admin to find out why it wasn't working, guess what! It doesn't allow PHP T_T


BLAH
"It can't be a NE Lan without any problems!" ~ "Starcraft is like sex. After a rough round, sometimes you just need that cigarette."
Phtes
Profile Blog Joined October 2010
United States370 Posts
October 03 2011 23:52 GMT
#5
Is your project required to link to a PHP database? if not, just create some redirect pages and be done with it xD.

Never really heard of a HTML class requiring PHP to begin with o.0
I'm Your Phtes o.0 **SKT1 For Life!**
M155_G33k
Profile Blog Joined March 2010
United States470 Posts
October 04 2011 00:08 GMT
#6
On October 04 2011 08:52 Phtes wrote:
Is your project required to link to a PHP database? if not, just create some redirect pages and be done with it xD.

Never really heard of a HTML class requiring PHP to begin with o.0


Its a web design class officially, but we mainly deal with html. He teaches using a gui based app where ass I like doing the actual code. Thats why I was afraid that my code was wrong >_<
"It can't be a NE Lan without any problems!" ~ "Starcraft is like sex. After a rough round, sometimes you just need that cigarette."
Deleted User 183001
Profile Joined May 2011
2939 Posts
Last Edited: 2011-10-04 00:32:51
October 04 2011 00:32 GMT
#7
AFAIK, 405 comes up when a request is made (like to a form), and the method (like POST, GET, etc.) isn't allowed. This is really weird, because POST and GET are very important global variables in PHP that are filled upon submission of a form, for example.

My web dev experience has only been with Apache servers, so there has to be some issue with your server that isn't allowing PHP OR PHP isn't installed. Verify that PHP is installed on your server. If it is, then contact your IT guy.

Edit: My bad. I see that the IT guy's on the issue. Well, once it's fixed, good luck
Phtes
Profile Blog Joined October 2010
United States370 Posts
October 04 2011 01:04 GMT
#8
On October 04 2011 09:08 M155_G33k wrote:
Show nested quote +
On October 04 2011 08:52 Phtes wrote:
Is your project required to link to a PHP database? if not, just create some redirect pages and be done with it xD.

Never really heard of a HTML class requiring PHP to begin with o.0


Its a web design class officially, but we mainly deal with html. He teaches using a gui based app where ass I like doing the actual code. Thats why I was afraid that my code was wrong >_<


Yeah I'm in a web design major and my college has it seperated, like HTMl/CSS are considered Intro / etc Web Design with server coding seperate, like Intro / inter / advanced programming logic, then you have the extra stuff like intro / advanced java etc.


GUI, you using a dreamweaver? ewwww. Notepad++ is where its at ^^
I'm Your Phtes o.0 **SKT1 For Life!**
Please log in or register to reply.
Live Events Refresh
The PiG Daily
21:30
Best Games of SC
Maru vs Reynor
TBD vs MaxPax
Maru vs SHIN
MaxPax vs Maru
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft654
StarCraft: Brood War
Shuttle 608
GoRush 117
NaDa 61
League of Legends
C9.Mang0398
Counter-Strike
minikerr29
Super Smash Bros
Mew2King61
Heroes of the Storm
Khaldor181
Other Games
summit1g8220
JimRising 439
Maynarde209
hungrybox110
Organizations
Other Games
gamesdonequick2064
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Hupsaiya 121
• musti20045 21
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift5551
Other Games
• imaqtpie2979
Upcoming Events
Replay Cast
7h 26m
Wardi Open
10h 26m
Monday Night Weeklies
15h 26m
Sparkling Tuna Cup
1d 8h
OSC
2 days
YoungYakov vs Mixu
ForJumy vs TBD
Percival vs TBD
Shameless vs TBD
Replay Cast
2 days
The PondCast
3 days
OSC
4 days
CranKy Ducklings
5 days
SC Evo League
5 days
[ Show More ]
BSL 21
5 days
Sparkling Tuna Cup
6 days
BSL 21
6 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.