Hi,
Using the following code, how do I stop the user entering more than one instance of an ID into the array.
If an attempt is made, a message should be displayed notifying the user that this action would have occurred duplicate IDs.
If the array doesn't contain the ID, how do I add an instance of it?
<?php
session_start();
$_SESSION['ids'][] = $_GET['id'];
$array = $_SESSION['ids'];
print_r($array);
?>