Hi everyone! I am new on here, and i got stuck with php. I need a php function or code that edit a html's image "Source", on live edit. For Example: The updater.php have a textbox and button and if i change that textbox and i press the button,it should change a html's image source with that on the textbox. There is nothing about this on Google. please help.
Put this code in your updater.php file <?php if(isset($_POST['url'])) $url = $_POST['url']; ?> <img src=" <?php if(isset($url)) echo $url; else echo original_img_src; ?> "> <form method="post" action="updater.php"> <textarea name="url"> </textarea> <input type="submit" value="Change URL"> </form>