SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Wizard co.ador's Avatar
    Join Date
    Apr 2009
    Posts
    1,054
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redirection error using header();

    This is the error displaying in the browser after I have redirected the form.

    error
    Not Found

    The requested URL /shoes/stores/itemdetails.php was not found on this server.
    redirection:
    PHP Code:
     header("Location: http://localhost/shoes/stores/itemdetails.php?id=$id");exit; 

  2. #2
    SitePoint Evangelist ferrari_chris's Avatar
    Join Date
    Mar 2008
    Location
    NP, New Zealand
    Posts
    576
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm no expert, but it looks like it's saying it can't find the file...

    Is the path correct?

  3. #3
    SitePoint Wizard co.ador's Avatar
    Join Date
    Apr 2009
    Posts
    1,054
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey ferraris


    I had a typo inside the url string inside the header(): that's find it was not able to find the webpage I was trying to output inside the header function

    Now it is redirecting.........

    The path was wrong!!


Bookmarks

Posting Permissions

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