且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我需要HTML和PHP代码的帮助

更新时间:2022-11-26 12:15:30

好-您将需要学习如何做这些东西,在这里可以学到.
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,