Chapter 7. Web Applications

In Web 2.0, many sites aren’t just static pages anymore, or even static pages plus a few forms to fill out. They’re full-blown applications for data entry, word processing, calendar management, human resources, games, and anything else you can imagine. In this chapter, we focus on issues that specifically arise in improving such web applications.

Replace Unsafe GET with POST

Redesign unsafe operations so that they are accessed via POST rather than GET.

 <a class="delete"                                                   
 href="article.php?action=delete&amp;id=1000517&amp;nonce=76a62"     
 onclick="return deleteSomething('post', 1000517,                    
 'You are about to delete this post &quot;POST vs.                   
 GET&quot;.\n&quot;OK&quot; to delete,                               
 &quot;Cancel&quot; to stop.'                                        
 );">Delete</a> ...

Get Refactoring HTML: Improving the Design of Existing Web Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.