O'Reilly logo

Refactoring HTML: Improving the Design of Existing Web Applications by Elliotte Rusty Harold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required