Log in

View Full Version : Error



RLY-CRAIG?
16-09-2006, 10:35 PM
Hi,

If you go to http://www.habbo-positivefm.co.uk/ and click on requests, then try and send the form i get this annoying error;

Method Not Allowed
The requested method POST is not allowed for the URL /contact.htm.

Why please?

Plus rep to whoever can help me

Thanks :)

RyanS
16-09-2006, 10:43 PM
Hi there.

Post the code for the form and the form handler and i will be happy to help.

RLY-CRAIG?
16-09-2006, 10:53 PM
Thankyou=




<style type="text/css">
<!--
BODY {
scrollbar-arrow-color:#707047;
scrollbar-face-color:#FFFFF2;
scrollbar-highlight-color:#FFFFF2;
scrollbar-3dlight-color:#FFFFF2;
scrollbar-darkshadow-color:#FFFFF2;
scrollbar-shadow-color:#FFFFF2;
scrollbar-track-color:#FFFFF2;
}
-->
</style>
<body bgcolor="#FBFBF6"></body>
<p align="center"><font color="#707047"><font face="Verdana" size="1">
<b>Contact Habbo Positive FM<br><br></b>To send in a request/shoutout etc to Habbo Positive FM By using the form below-Please only sent to the dj currenty djing Please bare in mind, any spam,
abuse, you will be banned from the site your IP is logged.</font><script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000****.com
// Don't delete this header!

var message="Sorry, Habbo Positive FM have disabled right click."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script></font></p>

<form Action="?page=contactphp" Method="Post">
<table border="0" width="100%" id="table1" cellspacing="1" cellpadding="0">
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Name:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<input name="name" size="30" value="Your Name" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6"></font></td>
</tr>
<tr>
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Area:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<select name="dropdown" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6" size="1">
<option value="-- Choose from list --">-- Choose from list --</option>
<option value="Shoutout">Shoutout</option>
<option value="Song Request">Song Request/option>
<option value="Competition Entry">Competition Entry</option>
</select></font></td>
</tr>
<tr>
<td width="35%">
<p align="right"><font face="Verdana" size="1" color="#707047">Send to:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<select name="to" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6" size="1">
<option value="[email protected]">Myke</option>
<option value="[email protected]">Connor</option>
</select></font></td>
</tr>
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Comments:</font></td>
<td width="50%"><font color="#707047" size="1">

<textarea name="comments" rows="3" cols="29" style="border:1px solid #707047; font-family: Verdana; color:#707047; font-size:8pt; background-color:#FBFBF6">Comment</textarea></font></td>
</tr>
<tr>
<td colspan="2">
<p align="center"><font color="#707047" size="1" face="Verdana">
<input type="submit" Value="Send To te DJ" style="border:1px solid #707047; font-size: 8pt; font-family: Verdana; color: #707047; background-color:#FBFBF6"></font></td>
</tr>
</table>
</form>
<p align="center"><font face="Verdana" size="1" color="#707047">Please do not
spam the form. All forms sent include the IP address of the sender. If you are
found to continually spam the form your IP will be banned from the website.</font><br>
</p>
<head><title>Contact</title></head>






<html>
<body>
<font color="#707047" size="1" face="Verdana">
<p align="center">
<?php
$name=$_POST['name'];
$email=$_POST['email'];
$comments=$_POST['comments'];
$dropdown=$_POST['dropdown'];
$to=$_POST['to'];
$message="Name: $name \n Email: $email \n Area: $dropdown \n Comments: $comments \n IP: $REMOTE_ADDR";
if(mail($to,"Contact about a $dropdown from $name",$message,"From: $email\n")) {
echo "Thank you for sending your message - it will be replied to as soon as possible!";
} else {
echo "Habbo-Positive FM";
}
?>
</font>
</p>
</body>
</html><head><title>Contact</title></head>


thanks

RyanS
16-09-2006, 11:10 PM
Please edit the post and instead of using [ quote] and [ /quote] use [ php] and [ /php] makes it easier to read.

Johno
16-09-2006, 11:13 PM
<form Action="?page=contactphp" Method="Post">

Only thing I noticed was that you missed the . before php - Might not be the problem.


<form Action="?page=contact.php" Method="Post">

RLY-CRAIG?
16-09-2006, 11:36 PM
Please edit the post and instead of using [ quote] and [ /quote] use [ php] and [ /php] makes it easier to read.

too late to edit:(

and active, didnt make a difference:(

Thanks

RyanS
16-09-2006, 11:45 PM
repost with php tags then..

Johno
16-09-2006, 11:54 PM
<style type="text/css">
<!--
BODY {
scrollbar-arrow-color:#707047;
scrollbar-face-color:#FFFFF2;
scrollbar-highlight-color:#FFFFF2;
scrollbar-3dlight-color:#FFFFF2;
scrollbar-darkshadow-color:#FFFFF2;
scrollbar-shadow-color:#FFFFF2;
scrollbar-track-color:#FFFFF2;
}
-->
</style>
<body bgcolor="#FBFBF6"></body>
<p align="center"><font color="#707047"><font face="Verdana" size="1">
<b>Contact Habbo Positive FM<br><br></b>To send in a request/shoutout etc to Habbo Positive FM By using the form below-Please only sent to the dj currenty djing Please bare in mind, any spam,
abuse, you will be banned from the site your IP is logged.</font><script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000****.com
// Don't delete this header!

var message="Sorry, Habbo Positive FM have disabled right click."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script></font></p>

<form Action="?page=contactphp" Method="Post">
<table border="0" width="100%" id="table1" cellspacing="1" cellpadding="0">
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Name:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<input name="name" size="30" value="Your Name" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6"></font></td>
</tr>
<tr>
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Area:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<select name="dropdown" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6" size="1">
<option value="-- Choose from list --">-- Choose from list --</option>
<option value="Shoutout">Shoutout</option>
<option value="Song Request">Song Request/option>
<option value="Competition Entry">Competition Entry</option>
</select></font></td>
</tr>
<tr>
<td width="35%">
<p align="right"><font face="Verdana" size="1" color="#707047">Send to:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<select name="to" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6" size="1">
<option value="[email protected]">Myke</option>
<option value="[email protected]">Connor</option>
</select></font></td>
</tr>
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Comments:</font></td>
<td width="50%"><font color="#707047" size="1">

<textarea name="comments" rows="3" cols="29" style="border:1px solid #707047; font-family: Verdana; color:#707047; font-size:8pt; background-color:#FBFBF6">Comment</textarea></font></td>
</tr>
<tr>
<td colspan="2">
<p align="center"><font color="#707047" size="1" face="Verdana">
<input type="submit" Value="Send To te DJ" style="border:1px solid #707047; font-size: 8pt; font-family: Verdana; color: #707047; background-color:#FBFBF6"></font></td>
</tr>
</table>
</form>
<p align="center"><font face="Verdana" size="1" color="#707047">Please do not
spam the form. All forms sent include the IP address of the sender. If you are
found to continually spam the form your IP will be banned from the website.</font><br>
</p>
<head><title>Contact</title></head>



<html>
<body>
<font color="#707047" size="1" face="Verdana">
<p align="center">
<?php
$name=$_POST['name'];
$email=$_POST['email'];
$comments=$_POST['comments'];
$dropdown=$_POST['dropdown'];
$to=$_POST['to'];
$message="Name: $name \n Email: $email \n Area: $dropdown \n Comments: $comments \n IP: $REMOTE_ADDR";
if(mail($to,"Contact about a $dropdown from $name",$message,"From: $email\n")) {
echo "Thank you for sending your message - it will be replied to as soon as possible!";
} else {
echo "Habbo-Positive FM";
}
?>
</font>
</p>
</body>
</html><head><title>Contact</title></head>

There you go :P

Colin-Roberts
17-09-2006, 12:16 AM
<form name="form" id="form" method="post" action="contact.php">
there i think

Hitman
17-09-2006, 07:57 AM
Hi,

Try this:


<style type="text/css">
<!--
BODY {
scrollbar-arrow-color:#707047;
scrollbar-face-color:#FFFFF2;
scrollbar-highlight-color:#FFFFF2;
scrollbar-3dlight-color:#FFFFF2;
scrollbar-darkshadow-color:#FFFFF2;
scrollbar-shadow-color:#FFFFF2;
scrollbar-track-color:#FFFFF2;
}
-->
</style>
<body bgcolor="#FBFBF6"></body>
<p align="center"><font color="#707047"><font face="Verdana" size="1">
<b>Contact Habbo Positive FM<br><br></b>To send in a request/shoutout etc to Habbo Positive FM By using the form below-Please only sent to the dj currenty djing Please bare in mind, any spam,
abuse, you will be banned from the site your IP is logged.</font><script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000****.com
// Don't delete this header!

var message="Sorry, Habbo Positive FM have disabled right click."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script></font></p>

<form Action="contact.php" Method="Post">
<table border="0" width="100%" id="table1" cellspacing="1" cellpadding="0">
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Name:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<input name="name" size="30" value="Your Name" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6"></font></td>
</tr>
<tr>
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Area:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<select name="dropdown" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6" size="1">
<option value="-- Choose from list --">-- Choose from list --</option>
<option value="Shoutout">Shoutout</option>
<option value="Song Request">Song Request/option>
<option value="Competition Entry">Competition Entry</option>
</select></font></td>
</tr>
<tr>
<td width="35%">
<p align="right"><font face="Verdana" size="1" color="#707047">Send to:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<select name="to" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6" size="1">
<option value="[email protected]">Myke</option>
<option value="[email protected]">Connor</option>
</select></font></td>
</tr>
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Comments:</font></td>
<td width="50%"><font color="#707047" size="1">

<textarea name="comments" rows="3" cols="29" style="border:1px solid #707047; font-family: Verdana; color:#707047; font-size:8pt; background-color:#FBFBF6">Comment</textarea></font></td>
</tr>
<tr>
<td colspan="2">
<p align="center"><font color="#707047" size="1" face="Verdana">
<input type="submit" Value="Send To te DJ" style="border:1px solid #707047; font-size: 8pt; font-family: Verdana; color: #707047; background-color:#FBFBF6"></font></td>
</tr>
</table>
</form>
<p align="center"><font face="Verdana" size="1" color="#707047">Please do not
spam the form. All forms sent include the IP address of the sender. If you are
found to continually spam the form your IP will be banned from the website.</font><br>
</p>
<head><title>Contact</title></head>

Thats the top code, that one only needs to be changed. I saw you had a php nav, that was the problem here, you needed contact.php

Try it and tell me if it works.

- Tom

EDIT: I tested it and it works :)

RLY-CRAIG?
17-09-2006, 12:19 PM
thanks worked perfectky, plus rep


Hi,

Try this:


<style type="text/css">
<!--
BODY {
scrollbar-arrow-color:#707047;
scrollbar-face-color:#FFFFF2;
scrollbar-highlight-color:#FFFFF2;
scrollbar-3dlight-color:#FFFFF2;
scrollbar-darkshadow-color:#FFFFF2;
scrollbar-shadow-color:#FFFFF2;
scrollbar-track-color:#FFFFF2;
}
-->
</style>
<body bgcolor="#FBFBF6"></body>
<p align="center"><font color="#707047"><font face="Verdana" size="1">
<b>Contact Habbo Positive FM<br><br></b>To send in a request/shoutout etc to Habbo Positive FM By using the form below-Please only sent to the dj currenty djing Please bare in mind, any spam,
abuse, you will be banned from the site your IP is logged.</font><script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000****.com
// Don't delete this header!

var message="Sorry, Habbo Positive FM have disabled right click."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script></font></p>

<form Action="contact.php" Method="Post">
<table border="0" width="100%" id="table1" cellspacing="1" cellpadding="0">
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Name:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<input name="name" size="30" value="Your Name" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6"></font></td>
</tr>
<tr>
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Area:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<select name="dropdown" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6" size="1">
<option value="-- Choose from list --">-- Choose from list --</option>
<option value="Shoutout">Shoutout</option>
<option value="Song Request">Song Request/option>
<option value="Competition Entry">Competition Entry</option>
</select></font></td>
</tr>
<tr>
<td width="35%">
<p align="right"><font face="Verdana" size="1" color="#707047">Send to:</font></td>
<td width="50%"><font color="#707047" size="1" face="Tahoma">
<select name="to" style="border:1px solid #707047; font-family: Verdana; font-size:8pt; color:#707047; background-color:#FBFBF6" size="1">
<option value="[email protected]">Myke</option>
<option value="[email protected]">Connor</option>
</select></font></td>
</tr>
<tr>
<td width="35%">
<p align="right"><font size="1" face="Verdana" color="#707047">Comments:</font></td>
<td width="50%"><font color="#707047" size="1">

<textarea name="comments" rows="3" cols="29" style="border:1px solid #707047; font-family: Verdana; color:#707047; font-size:8pt; background-color:#FBFBF6">Comment</textarea></font></td>
</tr>
<tr>
<td colspan="2">
<p align="center"><font color="#707047" size="1" face="Verdana">
<input type="submit" Value="Send To te DJ" style="border:1px solid #707047; font-size: 8pt; font-family: Verdana; color: #707047; background-color:#FBFBF6"></font></td>
</tr>
</table>
</form>
<p align="center"><font face="Verdana" size="1" color="#707047">Please do not
spam the form. All forms sent include the IP address of the sender. If you are
found to continually spam the form your IP will be banned from the website.</font><br>
</p>
<head><title>Contact</title></head>

Thats the top code, that one only needs to be changed. I saw you had a php nav, that was the problem here, you needed contact.php

Try it and tell me if it works.

- Tom

EDIT: I tested it and it works :)

Hitman
17-09-2006, 01:18 PM
No problem ;)

Colin-Roberts
17-09-2006, 01:21 PM
lol i was rite first zengo just put it in full code :(

Want to hide these adverts? Register an account for free!