Exemplo n.º 1
0
<?php

ob_start();
require_once "includes/functions.php";
$phoneNumber = new PhoneNumber();
if (array_key_exists('delete_phone_numbers', $_POST)) {
    $insert_id = $_POST['insert_id'];
    $phoneNumber->delete();
    header("Location: portfolio.php?insert_id=" . $insert_id);
}
if (array_key_exists('modify_phone_numbers', $_POST)) {
    $phoneNumbers = $phoneNumber->getPhoneNumbersFromPhoneId($_POST);
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Phone Number Update</title>
</head>

<body>
<div class="container">
    <ul class="nav">
        <li><a href="listcontacts.php">List of All Contacts</a></li>
    </ul>
    <div class="header">
    </div><!-- end .header -->
    <div class="content">