Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2013 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6072039 to your computer and use it in GitHub Desktop.
Save anonymous/6072039 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$("#form_submit").click(function(){
var imgurl1=$("#img_url1").val();
$.post("code.php",
{
img_url1:imgurl1
},
function(code,status){
alert(code);
$("#content_code").text(code);
});
});
});
<?php
$img_url1 = $_POST['img_url1'];
echo $img_url1;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment