Plz help : Reloads to same page !!!

Discussion in 'HTML & Website Design' started by pulikuttann, Apr 22, 2007.

  1. #1
    Can anyone plz check this and help me !!!

    When we try to enter any site in the form it reloads back to the same page !!!

    Page
     
    pulikuttann, Apr 22, 2007 IP
  2. xd2

    xd2 Peon

    Messages:
    694
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    this part in your code:

    <form method="post" action="/2/phpproxy/index.php" id="form">

    is telling it to go back to the same page. Should it not go to a processing page?
     
    xd2, Apr 22, 2007 IP
  3. chuckd1356

    chuckd1356 Active Member

    Messages:
    770
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Yeah, you need to put some server side logic in there somewhere.
    Either have this:

    if (empty($_POST['submit']))
    {
    // display
    }
    else
    {
    //do what ever
    }

    or you need to have it go to a processing page.
     
    chuckd1356, Apr 22, 2007 IP
  4. pulikuttann

    pulikuttann Banned

    Messages:
    1,839
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #4
    But dear !


    the first loading page of a proxy site is index.inc.php !!!
    And it is loaded to the index page .

    Anyway I got it corrected.It was the problem with some javascript used inside the code.
     
    pulikuttann, Apr 22, 2007 IP