2011-08-06, 22:39:54
Hello Mikeh
I managed to solve the problem by changing your code a little. The problem is here
When the submit button is clicked it posts the data to SLUG i.e www.yoursite.com/index
where index is the slug of the actual page index.php. When i was testing it locally on my computer it was working fine but when I uploaded it and tried to login it showed me 404 page doesnt exist because the url above is incomplete. So I changed that code to this
Now it works perfectly, when you submit it it goes to the actual page i.e www.yoursite.com/index.php?id=index
This url works both locally and on my hosting server.
I aslo changed the same code for register button and logout button.
I managed to solve the problem by changing your code a little. The problem is here
Code:
<form method="post" action="'.$site_url.'/'.$the_page_slug.'" name="loginform" id="loginform">
When the submit button is clicked it posts the data to SLUG i.e www.yoursite.com/index
where index is the slug of the actual page index.php. When i was testing it locally on my computer it was working fine but when I uploaded it and tried to login it showed me 404 page doesnt exist because the url above is incomplete. So I changed that code to this
Code:
<form method="post" action="index.php?id='.$the_page_slug.'" name="loginform" id="loginform">
Now it works perfectly, when you submit it it goes to the actual page i.e www.yoursite.com/index.php?id=index
This url works both locally and on my hosting server.
I aslo changed the same code for register button and logout button.