Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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>


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
..........................................................................................................................................................................................................................................
Posted
Updated 20-Oct-17 2:15am

1 solution

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,
 
Share this answer
 
Comments
Member 13475695 20-Oct-17 9:03am    
i don't went to take a week to learn how to do that
i need some one who has the expert to help me what to do exactly .
W Balboos, GHB 20-Oct-17 9:13am    
People do programming for a living - and just like car mechanics, carpenters, painters, barbers and anyone else, they need to get paid.

Learn it or Pay someone who took the time to learn it.
Member 13475695 20-Oct-17 9:25am    
So what is the purpes of this website "codeproject" ?
W Balboos, GHB 20-Oct-17 9:30am    
It is:
For programmers and those interested to discuss programming issues.
For those with honest questions to get answers to help them.
BUT, it is:
NOT for those who think we are some sort of free coding service
NOT for those too lazy to put in some effort.

That should help you get started on what Code Project is - and isn't
Member 13475897 20-Oct-17 9:34am    
why does it need to be php, html has its own form functionality.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900