Monthly Archives: April 2013

Edit a commit message with GIT

Description: Having that we commited some code with a wrong message, how can we edit the last commit? Solution: If the code has not been pushed yet, the command git commit –amend will do the trick. Example : git commit –amend -m … Continue reading

Posted in Version control | Tagged , , , , , | Leave a comment

Send array values from PhP form to JavaScript

Description: Having a PhP form, we need to manipulate in JavaScript an object that depends on the form input. Solution: The best way to do it is to use an encoded JSON object or an AJAX call. The AJAX call … Continue reading

Posted in Script | Tagged , , , , | 2 Comments