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!


Results 1 to 5 of 5

Thread: Request form

  1. #1
    Join Date
    Sep 2006
    Posts
    1,423
    Tokens
    12,000

    Latest Awards:

    Default Request form

    I uploaded my request form and it turned out like this

    http://www.musichabbo.net/requests.html

    does anybody know why and how can I fix it?
    *Text Removed*

    Signature edited by Agesilaus (Forum Super Moderator): Please do not have font above size 4 in your signature.

  2. #2
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    HTML Code:
    <center><b></b>
    <p><!--p require('connect.php');
    require('functions.php');
    if($_POST['submit']) {
    $bname = mysql_real_escape_string($_POST['name']);
    $btype = mysql_real_escape_string($_POST['type']);
    $brequest = mysql_real_escape_string($_POST['request']);
    $name = htmlentities($bname);
    $type = htmlentities($btype);
    $request = htmlentities($brequest);
    $ipaddr = $_SERVER['REMOTE_ADDR'];
    if ($bname==NULL|$brequest==NULL){
    echo "<center><h1><b>All fields are required.</b></h1></center><p>";
    }else{
    $query = "INSERT INTO rp_request (name, type, request, ipaddr) VALUES('$name','$type','$request','$ipaddr')";
    mysql_query($query) or die(mysql_error());
    echo "<p><b>--Your Request Has Been Sent--</b><p>";
    }
    }
    --></p>
    <p><br>
    <font face="Verdana" size="2"><strong>Type:</strong></font>&nbsp; <select name="type">
    <option value="">Song Request</option>
    <option value="">Shoutout</option>
    <option value="">Competition</option>
    <option value="">Joke</option>
    <option value="">Other</option></select></p>
    <p><b><font face="Verdana" size="2">Request:&nbsp; </font></b><br>
    
    </p>
    <form action="request.php" method="post"></form></center>
    Ignoring the commented php in html, your problem lies at the bottom. You define the <form> starting tag before all inputs, etc, for that form. You're also missing a textarea tag.
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  3. #3
    Join Date
    Apr 2007
    Posts
    79
    Tokens
    0

    Default

    What DJ Panel are u using first?
    I NEED TO GIVE REP TO
    Heinous

    i found a cool Web site ts Stuff
    Click it


  4. #4
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    INSERT INTO rp_request
    He's using my DJ Panel.
    To fix it un-comment the php.... instead of <!--php make is <?php

    You cannot comment php using normal comment tags!!

  5. #5
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default

    it got haxed..
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

Posting Permissions

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