Saturday, 15 September 2012

javascript - POST-ing an URL via AJAX (jQuery) -


I have a text field on my website that contains the URL, which means "".

When the user changes that field, he sends the jQuery to the PHP script via POST , which saves it in the database.

The problem is that when a "403 Forbidden" error appears in jQuery when trying to send the value of the converted field (i.e. ""), it seems that the "http: //" problematic part Is "Ttp: //" and it does "http: /".

Does the browser return an error for security reasons? Is there a way around it?

Edit: The occurrence of changing the text field is:

 $ .ajax ({ Method: "POST", url: "updateproject.php", data: {"id": id, "field": this.name, "value": this.value}});  2 : Addition 2: Here is an image of error. Should I ask about this from my hosting provider? Enter image details here 

HTML >

No comments:

Post a Comment