View Single Post
Old 10-21-2008, 08:20 PM  
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
PHP Code:
$vote = new Voter();
$vote->show_selection_screen();
$tries 3;
if(
$_POST['vote_cast'] == "Obama" && $tries 3) {
  
$vote->select_element('McCain');
  
$vote->show_selection_screen();
  ++
$tries;
} else {
  
// Ok, let them have their selection
  
$vote->cast($_POST['vote_cast']);

__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote