把下面代码加到PHP有有关问题,请PHP高手帮小弟我看看。(有人说要有转义符的)
把下面代码加到PHP有问题,请PHP高手帮我看看。(有人说要有转义符的)
把这段代码加到PHP有问题。
('midir')小括号的不能动。。必须得用单引号
- PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><p id="midi" class="f14"><a class="f14" onclick="document.getElementById('midi').innerHTML = document.getElementById('midir').innerHTML;" href="javascript:void(0)">查看答案</a></p>
------解决方案--------------------
你说的只是输出吧?这样的话用这种形式方便点,不需要对内容中的引号转义
- PHP code
echo <a class="f14" onclick="document.getElementById('midi').innerHTML = document.getElementById('midir').innerHTML;" href="javascript:void(0)">查看答案</a>html;<br><font color="#e78608">------解决方案--------------------</font><br>那要看你是如何加的,加在哪里<br><font color="#e78608">------解决方案--------------------</font><br>echo <p id="midi" class="f14"><a class="f14" onclick="document.getElementById('midi').innerHTML = document.getElementById('midir').innerHTML;"></a>href="javascript:void(0)">查看答案</p><br>html;<br><br>这样就好了。<br>html;前面不能有空格。<br><font color="#e78608">------解决方案--------------------</font><br>
------解决方案--------------------
转义或把那一段赋值给一个变量。再连接上。。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Solutions for document.cookie not being obtained: 1. Browser privacy settings; 2. Same-origin policy; 3. HTTPOnly Cookie; 4. JavaScript code error; 5. Cookie does not exist or expires; 6. Cross-domain issues; 7. Viewer mode; 8. Server problems; 9. JavaScript execution timing; 10. Check console log, etc.

On September 3, version 1.5 of the Grand Theft Auto VI document which provides a detailed overview of everything that is known about the game to date. The updated version of the document was announced in a trailer published on X (formerly Twitter).??

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

请问如何修改url某一参数的参数值呢?是要拆开了再拼回去吗?那么请问如何修改url某一参数的参数值呢?是要拆开了再拼回去吗?http://127.0.0.1/myo/newuser.php?mod=search&type=fastone比如现在我要修改mod=new要怎么做呢?------解决方案--------------------发送了请求

getElementById can obtain the corresponding HTML element through the id attribute of the element, and then operate and modify it conveniently. Whether it is to dynamically change the content and style of an element or add an event listener, getElementById is a very commonly used method.

Everyone is looking forward to today's Windows 1123H2 release. In fact, Microsoft has just launched updates to the release preview, which is the closest channel before the official release stage. Known as Build 22631, Microsoft said they are rolling out the new rebranded chat app, phone link, and play together widgets that have been tested on other internal channels over the past few months. "This new update will have the same servicing branch and codebase as Windows 11 version 22H2 and will be cumulative with all newly announced features, including Copilot in Windows (preview)," Microsoft promises. Redmond officials further

Introduction to the Document object in JavaScript and code examples: In JavaScript, the Document object is an interface that represents the entire HTML document. It provides access and operation methods to the HTML document. This article will introduce the common methods and properties of the Document object and provide some specific code examples. getElementById method getElementById is an important method of the Document object, used to

Common document properties and methods: Properties: 1. document.title: Get or set the title of the document, usually displayed on the title bar or label of the browser; 2. document.URL: Get the complete URL of the document; 3. document. documentElement: Get the root element of the document, usually the <html> element; 4. document.body: Get the <body> element of the document; 5. document.head, etc.
