• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:51
CET 16:51
KST 00:51
  • 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
ByuL: The Forgotten Master of ZvT29Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Team Liquid Map Contest - Preparation Notice6Weekly Cups (Feb 23-Mar 1): herO doubles, 2v2 bonanza1Weekly Cups (Feb 16-22): MaxPax doubles0Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0258
StarCraft 2
General
Vitality disbanding their sc2-team How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Team Liquid Map Contest - Preparation Notice ByuL: The Forgotten Master of ZvT Nexon's StarCraft game could be FPS, led by UMS maker
Tourneys
RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament $5,000 WardiTV Winter Championship 2026 Sea Duckling Open (Global, Bronze-Diamond) PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 515 Together Forever Mutation # 514 Ulnar New Year Mutation # 513 Attrition Warfare
Brood War
General
BSL 22 Map Contest — Submissions OPEN to March 10 BGH Auto Balance -> http://bghmmr.eu/ Flash's ASL S21 & Future Plans Announcement Gypsy to Korea BW General Discussion
Tourneys
ASL Season 21 Qualifiers March 7-8 [Megathread] Daily Proleagues [BSL22] Open Qualifier #1 - Sunday 21:00 CET Small VOD Thread 2.0
Strategy
Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Simple Questions, Simple Answers Zealot bombing is no longer popular?
Other Games
General Games
Path of Exile PC Games Sales Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Battle Aces/David Kim RTS Megathread
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
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 Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Mexico's Drug War Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Gaming-Related Deaths
TrAiDoS
ONE GREAT AMERICAN MARINE…
XenOsky
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2966 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
Netherlands10342 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
WardiTV Winter Champion…
12:00
Playoffs
herO vs Clem
MaxPax vs Cure
WardiTV1460
TKL 401
IndyStarCraft 270
EnkiAlexander 65
IntoTheiNu 16
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko433
TKL 401
IndyStarCraft 270
Rex 134
Vindicta 5
StarCraft: Brood War
Britney 26222
Sea 22072
firebathero 643
Pusan 50
[sc1f]eonzerg 41
NaDa 37
Rock 29
Dota 2
Gorgc5828
monkeys_forever178
Counter-Strike
fl0m2129
Super Smash Bros
Mew2King76
Heroes of the Storm
Khaldor289
Other Games
B2W.Neo1052
singsing622
DeMusliM225
Mlord171
Fuzer 135
KnowMe91
QueenE54
Organizations
Dota 2
PGL Dota 2 - Main Stream9115
PGL Dota 2 - Secondary Stream1654
Other Games
BasetradeTV56
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• 3DClanTV 35
• iHatsuTV 11
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• blackmanpl 22
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Nemesis8581
• Jankos2011
• TFBlade776
• Stunt559
Upcoming Events
AI Arena Tournament
4h 9m
Patches Events
7h 9m
Replay Cast
8h 9m
Sparkling Tuna Cup
18h 9m
RSL Revival
18h 9m
Classic vs TriGGeR
Cure vs Cham
WardiTV Winter Champion…
20h 9m
OSC
20h 39m
BSL
1d 4h
Replay Cast
1d 8h
Replay Cast
1d 17h
[ Show More ]
Monday Night Weeklies
2 days
OSC
2 days
Replay Cast
4 days
The PondCast
4 days
Replay Cast
5 days
Replay Cast
6 days
CranKy Ducklings
6 days
Liquipedia Results

Completed

Proleague 2026-03-05
PiG Sty Festival 7.0
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
Spring Cup 2026
ASL Season 21: Qualifier #1
RSL Revival: Season 4
WardiTV Winter 2026
Nations Cup 2026
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

ASL Season 21: Qualifier #2
ASL Season 21
Acropolis #4 - TS6
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
NationLESS Cup
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
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 © 2026 TLnet. All Rights Reserved.