Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Error

  1. #1
    Join Date
    Apr 2005
    Posts
    2,444
    Tokens
    0

    Latest Awards:

    Default Error

    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

  2. #2
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    Hi there.

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

  3. #3
    Join Date
    Apr 2005
    Posts
    2,444
    Tokens
    0

    Latest Awards:

    Default

    Thankyou=

    Quote Originally Posted by contact.htm

    <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>

    Quote Originally Posted by contact.php

    <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

  4. #4
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

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

  5. #5
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    Code:
    <form Action="?page=contactphp" Method="Post">
    Only thing I noticed was that you missed the . before php - Might not be the problem.

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

  6. #6
    Join Date
    Apr 2005
    Posts
    2,444
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by RyanS View Post
    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

  7. #7
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    repost with php tags then..

  8. #8
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    PHP Code:
     <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 mindany spam
    abuseyou 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
    PHP Code:
     <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

  9. #9
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    <form name="form" id="form" method="post" action="contact.php">
    there i think

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  10. #10
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Hi,

    Try this:

    PHP Code:
    <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 mindany spam
    abuseyou 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
    Last edited by Hitman; 17-09-2006 at 08:02 AM.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •