Skip to content
Advertisement

Tag: jquery

How to add anchor tag to a URL from text input

I want to be able to take user inputted text in a comment field and check for URL type expression, and if it exists, add an anchor tag (to url) when the comment is displayed. I am using PHP on the server-side, and Javascript (with jQuery) on client, so should I wait to check for URL until right before it

How do I PHP-unserialize a jQuery-serialized form?

Using $(‘#form’).serialize(), I was able to send this over to a PHP page. Now how do I unserialize it in PHP? It was serialized in jQuery. Answer You shouldn’t have to unserialize anything in PHP from the jquery serialize method. If you serialize the data, it should be sent to PHP as query parameters if you are using a GET

PHP session not working with JQuery Ajax?

Update, Solved: After all this I found out that I was calling an old version of my code in the update ajax. ‘boardControl.php’ instead of ‘boardUpdate.php’ These are the kinds of mistakes that make programing fun. I’m writing a browser gomoku game. I have the ajax statement that allows the player to play a piece. value = board square location

Advertisement