• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:42
CEST 04:42
KST 11:42
  • 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
Maestros of the Game: Week 1/Play-in Preview9[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9
Community News
Weekly Cups (August 25-31): Clem's Last Straw?25Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris46Weekly Cups (Aug 11-17): MaxPax triples again!15Weekly Cups (Aug 4-10): MaxPax wins a triple6
StarCraft 2
General
Weekly Cups (August 25-31): Clem's Last Straw? Geoff 'iNcontroL' Robinson has passed away #1: Maru - Greatest Players of All Time Maestros of the Game: Week 1/Play-in Preview Weekly Cups (Aug 11-17): MaxPax triples again!
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament Maestros of The Game—$20k event w/ live finals in Paris Monday Nights Weeklies LiuLi Cup - September 2025 Tournaments 🏆 GTL Season 2 – StarCraft II Team League
Strategy
Custom Maps
External Content
Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies
Brood War
General
BW General Discussion ASL20 General Discussion BGH Auto Balance -> http://bghmmr.eu/ No Rain in ASL20? Starcraft at lower levels TvP
Tourneys
[Megathread] Daily Proleagues Is there English video for group selection for ASL [ASL20] Ro24 Group F [IPSL] CSLAN Review and CSLPRO Reimagined!
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Mechabellum Teeworlds - online game General RTS Discussion Thread
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread YouTube Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 3671 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
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
PiGosaur Monday
00:00
#47
SteadfastSC270
CranKy Ducklings156
EnkiAlexander 83
rockletztv 41
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 270
WinterStarcraft264
Nina 164
RuFF_SC2 108
StarCraft: Brood War
Artosis 786
sSak 143
NaDa 39
Purpose 14
Icarus 7
Terrorterran 6
yabsab 5
Dota 2
monkeys_forever1199
League of Legends
Cuddl3bear3
Counter-Strike
Stewie2K201
Super Smash Bros
hungrybox457
Other Games
summit1g6742
tarik_tv6359
shahzam739
C9.Mang0484
ViBE246
Maynarde191
Trikslyr97
Mew2King46
Organizations
Other Games
gamesdonequick1175
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Other Games
• Scarra1171
Upcoming Events
LiuLi Cup
8h 18m
Replay Cast
21h 18m
The PondCast
1d 7h
RSL Revival
1d 7h
Maru vs SHIN
MaNa vs MaxPax
Maestros of the Game
1d 14h
OSC
2 days
MaNa vs SHIN
SKillous vs ShoWTimE
Bunny vs TBD
Cham vs TBD
RSL Revival
2 days
Reynor vs Astrea
Classic vs sOs
Maestros of the Game
2 days
BSL Team Wars
2 days
Team Bonyth vs Team Dewalt
CranKy Ducklings
3 days
[ Show More ]
RSL Revival
3 days
GuMiho vs Cham
ByuN vs TriGGeR
Cosmonarchy
3 days
TriGGeR vs YoungYakov
YoungYakov vs HonMonO
HonMonO vs TriGGeR
Maestros of the Game
3 days
[BSL 2025] Weekly
3 days
RSL Revival
4 days
Cure vs Bunny
Creator vs Zoun
Maestros of the Game
4 days
BSL Team Wars
4 days
Team Hawk vs Team Sziky
Sparkling Tuna Cup
5 days
Liquipedia Results

Completed

CSL Season 18: Qualifier 2
SEL Season 2 Championship
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL 2025 AUTUMN (S18)
Maestros of the Game
Sisters' Call Cup
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

LASL Season 20
2025 Chongqing Offline CUP
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
EC S1
BLAST Rivals Fall 2025
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 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.