Results 1 to 3 of 3

Thread: Problem with report bad listings

  1. #1
    Thread Starter
    Rookie
    Not a Verified Customer
    Foulensois's Avatar
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with report bad listings

    Hi,

    I ve got a little problem with this function.

    My classipress url : classipress.mysite.com
    The ad : classipress.mysite.com/ad-number-one/

    When I push to the button report, I ve got a redirection in www.mysite.com/ad-number-one/ with a good 404 Error.

    The page source shows me :
    Code:
    <form action="http://www.mysite.com/ad-number-one/" method="post">
    <input type="text" class="condiment" name="condiment" value="" />
    <input type="hidden" name="page_url" value="http://www.mysite.com/ad-number-one/" />
    <input type="submit" class="report" name="submit" value="" />
    <input type="hidden" name="action" value="report" />
    </form>
    In single.php, there are these lines
    Code:
    <form action="<?php echo selfURL(); ?>" method="post">
    			<input type="text" class="condiment" name="condiment" value="" />
    			<input type="hidden" name="page_url" value="<?php echo selfURL(); ?>" />
    			<input type="submit" class="report" name="submit" value="" />
    			<input type="hidden" name="action" value="report" />
    		</form>
    The problem is selfURL
    There is an other funtion for the same result ?

    Thanks

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Problem with report bad listings

    Try using this instead

    Code:
    <?php echo $_SERVER['PHP_SELF']; ?>

  3. #3
    Thread Starter
    Rookie
    Not a Verified Customer
    Foulensois's Avatar
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with report bad listings

    Thanks for your answer.

    I tested different things like :
    Code:
    http://classipress.mysite.com/ echo $_SERVER['REQUEST_URI'];
    I'll test your code.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)