Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
PHP errors on website?
My website, hosted by HostGator, uses sitebuilder. I couldn't use that to make a membership system so I made my own with PHP and mySQL on Notepad. I uploaded them to the server as separate pages to test them and they work... but when I put them on the page they fail.
If I embed them on a website page it shows me parts of the page that it shouldn't, these look like php commands.
And if I put the code in the page specific body script it removes all php in the code and just shows the form.
Here is what it should do: http://www.game-index.org/sign_up.php
And here is what it does as embedded: http://game-index.org/sign_up
The code I used can be found by right clicking on the page "http://game-index.org/sign_up%22 and selecting the view page source option.
But adding that extension takes me away from the website pages. Which is where I wanted the sign up form to be. I wanted sign up and log in to be on their own pages in the website. Is that not possible?
Duncan: I uploaded the notepad files which contain the sign up and login features I made to the server and they worked on their own. Then I embedded them to the page of the website and it failed to work. There may not be PHP there but it works like it is supposed to and the php from that page works as well, even if it doesnt show it in view page source. All I want is to have that sign up feature that works successfully here http://www.game-index.org/sign_up.php to work on here http://www.game-index.org/sign_up on the main website
4 Answers
- Anonymous8 years ago
It is not clear what you are trying to do or what we are looking at. What does...
" I uploaded them to the server as separate pages to test them and they work... but when I put them on the page they fail."
...mean?
There is no PHP code at
http://www.game-index.org/sign_up.php
which is a standard HTML form.
The code at http://game-index.org/sign_up
is an XML page warning that the site builder is upgrading.
Are you sure you are uploading the right pages to the right place on the site?
- Jeff PLv 78 years ago
The page at http://www.game-index.org/sign_up is a standard HTML page. Whatever page you're using, just rename from .html to .php. It will do what you want it to do. When I viewed the page source for that page, it looked like you just copied/pasted your PHP code from http://www.game-index.org/sign_up.php.
- tiger2380Lv 48 years ago
It seems like you are missing the beginning PHP tag <?php somewhere in your code. Also, if you are using htaccess, make sure:
1. it render the page as .php, not .html
2. It's pointing to/redirect to a .php file, not to a .html file
- For example: htaccess
/(.*) /$1.php
- SadsongsLv 78 years ago
The file needs a .php extension - how else does the server know it should execute it? http://game-index.org/sign_up.php