Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
how to call a method from hreff? April 15, 2013 10:30PM |
Registered: 11 years ago Posts: 106 Rating: 0 |
Language: PHPecho "<td>"".$this->Username . "</td><td><a href=PHP/deleteP.php?player_id=".$this->ID.">Delete</a></td></tr>";
Language: PHPPerson->Delete();
Language: PHPdeleteP.php?player_id=".$this->ID
Re: how to call a method from hreff? April 16, 2013 08:24AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: how to call a method from hreff? April 16, 2013 09:02AM |
Registered: 11 years ago Posts: 106 Rating: 0 |
Header or include... can switch statement be rerun? April 19, 2013 08:43PM |
Registered: 11 years ago Posts: 106 Rating: 0 |
Language: PHPswitch($_REQUEST[';Action';]){ case "ViewAll" : //some code here $page = "otherPage"; case "Delete": $Fixtures[0]=new Fixture(';';,';';,';';,';';); $Fixtures[0]->ID=$ID; $Fixtures[0]->Delete(); //what to do here... I need to refresh the entire page or table.. so would like to jump to the above code "Viewall" action... header ("Location: ?Controller=Fixtures&Action=ViewAll"); //this does not work (guessing its because of me including this into another page?? break;} include( ';Views/'; . $page . ';.php';);
Re: how to call a method from hreff? April 22, 2013 08:32AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |