Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chepistolas

macrumors member
Original poster
Apr 21, 2005
72
0
Chicago
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 www.gomezarmando.net
thanks again for you input.
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.