How to move using PHP

Discussion in 'Web Design and Development' started by chepistolas, Feb 13, 2007.

  1. chepistolas macrumors member


    Apr 21, 2005
    i got it, all I had to do was put ../ before contact.php. thanks anyways.

    I have a wordpress contact page and it has this code:

    <code> <div id="form">
    <form method="POST" action="/contact.php">

    Now the only way the form actually reads this "contact.php" file is if I put the php file in /contact/contact.php. I would have left it like that, but it messes up my actual contact page that WP links too. ( when i click on contact me it gives me an error that there is no contact me page)

    What I want to know is how do i fix the code so it points to the .php file in the root directory, what do I have to put before contact.php [above].

    Thanks guys I am going crazy. Link to my site is
    thanks again for you input.
  2. rksprst macrumors member

    Jan 17, 2004
    replace your code with:
    <code> <div id="form">
    <form method="POST" action="contact.php">

    that should work... you don't include the "/" if your file is in the same directory as the file ur linking to

Share This Page