Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have just built a responsive HTML5 page, and as such, it links to other parts of the page from the menu... so, I have #home, #about, etc. I also need to pass a php variable for language, so that the correct language displays on the page, so I have lang=es, lang=gb, etc.
The languages are working fine and the links are working fine, but when I combine them both, the links stop working. Either as #about?lang=es or as index.php#about?lang=es. Neither works. It just stays at the top of the page and doesn't jump.
Any clues as to why?
Thanks in advance.
Kirsty
You should pass the php params first and then html tag ID
see the example below
https://domain.extension?lang=es#about
Dont worry about php variable value, it will remain untouched, servers will handle it
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed last year.
Improve this question
Does a single php page contain more than 2 forms? If yes, how can we use it?
Php does not support multiple form action in one form. Instead we can use mltiple submit buttons with unique names so that in php section we can redirect to any page using that button name.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
pls im looking for a new way to load my urls and pages in laravel, i want the url to change and the webpage to change but i do not want the whole browser to load, some examples are like soundcloud.com, wakanow.com, https://www.indiehackers.com/businesses, even linkedin has the same feature, where the pages load like desktop apps and they have nice preolading animations that works with the page, i believe this will be helpful to other people too :)
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am working on some sort of blogging platform in php with a nice material design lite frontend. However I have a page that dynamically loads the content, it works fine in the root directory, but not in my admin directory. I hope you can spot some kind of error/typo in my code, I know the error is in the menu-start file, since disabling it enables loading.
Here is the page that loads the code
and here is the menu-start page
If you need any other code, please ask
You're using relative links for include, which will mess up when you start changing directories. Use a pseudo-absolute path with DOCUMENT_ROOT. Be sure to use this for all of your includes.
<?php include $_SERVER['DOCUMENT_ROOT'].'/menu-start.php'; ?>
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am using curl to get some html pages in strings, but I have a problem when i display it , it doesn't show the images nor the css ,let say
the data have this
want to get modified to
thanks!
I want it to modify the whole html page ...
You can use wget with the -k option. Or just see the answers here.
Your problem is that links to images and stylesheets are relative instead of absolute, so your browser doesn't know the real origin of the page when displaying it. A quick fix would be to add
<base href="http://domain.com" />
(with the real originating domain) in the head of your page prior to displaying it.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have a simple php connection to my database, I think i did most of the process right, but when I hit the submit button it just renders my actual php file on my screen.
Make sure you are using a web server that supports PHP. It is rendering the code because PHP is not processing your code and renders it as text.
Try using another web server or install PHP on your current setup.
Also use MySQLi or PDO for your database part (it's safer and mysql_* is deprecated).