• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 03:13
CEST 09:13
KST 16:13
  • 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
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
ZeroSpace Early Access is Now Live!15Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters2Balance hotfix patch 5.0.16b (July 16)83Reynor: GSL Loss Wasn't About Preparation Format16[IPSL] Spring 2026 Grand Finals - This Weekend!18
StarCraft 2
General
CoolPillow: (We Tried It 365) My Honest Review! Clem: "I don't have that much hope in Blizzard" Balance hotfix patch 5.0.16b (July 16) Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters How would you feel about frequent/monthly balance patches for SC2?
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event Master Swan Open (Global Bronze-Master 2) WardiTV Summer Cup 2026 GSL CK #5 Race War HomeStory Cup 29
Strategy
[G] Having the right mentality to improve
Custom Maps
[M] (2) Industrial Park New Map Maker - Looking for Advice - Love or Hate
External Content
Mutation # 535 Assembly of Vengeance The PondCast: SC2 News & Results Mutation # 534 Burning Evacuation Mutation # 533 Die Together
Brood War
General
Animated Gateway BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion HORROR STARCRAFT MOVIE How Famous was FlaSh before his Debut?
Tourneys
[Megathread] Daily Proleagues [IPSL] Spring 2026 Grand Finals - This Weekend! Escore Tournament - Season 3 Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers PvT advise for noobs Fighting Spirit mining rates Creating a full chart of Zerg builds
Other Games
General Games
ZeroSpace Early Access is Now Live! Path of Exile General RTS Discussion Thread ZeroSpace at Steam NextFest - Last free demo Nintendo Switch Thread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Artificial Intelligence Thread Russo-Ukrainian War Thread How to buy a book - shipping from Korea to Europe The Games Industry And ATVI
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Anime Discussion Thread Series you have seen recently... Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023 McBoner: A hockey love story
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
Hello guys!
LIN1s
Role of Gaming on Mental Hea…
TrAiDoS
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
ramps on octagon
StaticNine
Customize Sidebar...

Website Feedback

Closed Threads



Active: 8803 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
Next event in 2h 47m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 130
FoxeR 113
ProTech80
StarCraft: Brood War
GuemChi 2587
Tasteless 247
Leta 213
Zeus 142
Mong 107
PianO 63
ZergMaN 48
ToSsGirL 44
Noble 24
Bale 24
[ Show more ]
Icarus 12
Dota 2
febbydoto73
League of Legends
JimRising 646
Other Games
summit1g5344
WinterStarcraft709
ceh9505
Happy358
Sick155
Trikslyr19
Organizations
Other Games
gamesdonequick1205
StarCraft: Brood War
lovetv 8
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 17 non-featured ]
StarCraft 2
• Berry_CruncH173
• mYiSmile18
• Adnapsc2 4
• intothetv
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• lizZardDota2246
League of Legends
• Rush1369
• Lourlo1147
• Stunt575
Upcoming Events
The PondCast
2h 47m
Kung Fu Cup
3h 47m
OSC
16h 47m
CrankTV Team League
1d 3h
Replay Cast
1d 16h
CrankTV Team League
2 days
Korean StarCraft League
2 days
Afreeca Starleague
2 days
RSL Revival
3 days
Serral vs SHIN
herO vs Solar
Online Event
3 days
[ Show More ]
Replay Cast
3 days
RSL Revival
4 days
Clem vs ByuN
Rogue vs Lambo
WardiTV Weekly
5 days
Sparkling Tuna Cup
6 days
PiGosaur Cup
6 days
Liquipedia Results

Completed

Proleague 2026-07-21
HSC XXIX
Eternal Conflict S2 E3

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
SCTL 2026 Spring
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026

Upcoming

Escore Tournament S3: W4
ASL S22 SEASON OPEN Day 2
Escore Tournament S3: W5
CSLAN 4
Blizzard Classic Cup 2026
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
Light Tournament 2026
Eternal Conflict S2 Finale
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
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.