我需要HTML和PHP代码的帮助 [英] I need a smal help with HTML and PHP codes

查看:169
本文介绍了我需要HTML和PHP代码的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要帮助
我有一个HTML文件,并使用
和php文件更改了一行.
我该怎么办?


例子:

Hi
i need a help
i have an HTML file and went to change a line of it using
and php file .
how can i do that ?


exemple :

<html>
<body>
<p> Hello </p>
<img src=" photo.jpg ">
</body>
</html>



我需要更改消息''你好''
以及图片'' photo.jpg ''
的链接 使用具有 form,input,input,commit的另一页

................................................... ................................................... ....

我尝试过的事情:

我还没有尝试任何东西



i need to change the message '' Hello ''
and the link of image '' photo.jpg ''
using another page with form , input , input , submit

........................................................................................................

What I have tried:

i don''t try any thing yet

..........................................................................................................................................................................................................................................

推荐答案

好-您将需要学习如何做这些东西,在这里可以学到.
W3Schools在线网络教程 [ ^ ]

为了帮助您: AJAX 将访问一个php文件,以获取新内容替换"hello".您需要 javaScript 来访问 DOM ,以便在不重绘页面的情况下更新页面上的特定位置.

您还可以使用php绘制原始页面,然后使用新值重新绘制它-但这并不会使您走得很远,而且非常麻烦,
Well - you will need to learn how to do this stuff and here''s where you can learn to do it.

W3Schools Online Web Tutorials[^]

To get you going: a php file will be accessed by AJAX to get your new content to replace ''hello''. You will need javaScript to access DOM in order to update a particular location on the page without redrawing the page.

You could also use php to draw the original page and then to redraw it with new values - but that''s not going to get you far and is very cumbersome,


这篇关于我需要HTML和PHP代码的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆