Accepting an image in script

salvadorotter

New Member
How would I edit this so it accepts the image when put in form all other options work just the image not uploading to server or database.Please could someone help I have looked around and can't find anything that I understand,could someone possibly add a bit of code to this?Thanks in advance.\[code\]<script type="text/javascript">jQuery(document).ready(function($) {$("#Submit").click(function() {var url = "../AdsCreate/CreateCar.php"; // the script where you handle the form input.$.ajax({ type: "POST", url: url, data: $("#myForm").serialize(), // serializes the form's elements. success: function(html){ $("#right").html(html); } });return false; // avoid to execute the actual submit of the form.});});</script>\[/code\]
 
Back
Top