Good day and thank you in advance,
ofc i have a prob, thats why im here.
Here it goes:
I have a page including a form. It uses post to get the data over to the next page.
The next page is a post receiver, where it echo's the received data before submitting it to the DB.
When opening the receiving page via locahost/dir/page.html it shows the echo.
But when redirected trough the action from the HTML form, the page shows as the source code.
(<form name="Registreren" id="Registratie_form" method="post" action="testPOST.html" onsubmit="return Validate();">)
I looked trough the forum, but coulndt find anything that could help me. Perhaps im just too noobish..
Perhaps this is the problem:
by Altrea » 04. April 2010 07:47:
There is NO reason to put php code into html files. Thats just sloppy programming.
Sloppy programming. But the pages have to fit the website's style.. So how could I do it then?
Tried using a .php file, still shows the source.
I call the page with testPOST.html wich gives me C/dir/xamp/root/dir/page
Calling the initial page with localhost..
Im noobish with PHP, but can figure most things out. So Jargon is do-able.
EDIT: Restarted PC and now it wont show the source, it shows nothing at all. Some files can even be found? Xampp put 2 files in HTdocs, index.html and index.php. INdex.php is worth a nto found error 404.. And html does show... With C/dir/dir/dir/page its found, but again as source.
There are no other progs installed so its prob not a conflict..
Perhaps Xampp inst configed correctly or ..?
Kindr egards and thank you in advance.
Ginn