Hello..
I'm the newbie one.
I have the file in php.
I cannot solving the notice about Notice: Undefined index: add_item1 in C:\xampp\htdocs\guideline\xmladd_evidence.php on line 44
How to solving that?
here my code
<html>
<font size="20" face="arial" color="black">
<center><b> Add item evidence </b></center><br><hr/>
</font>
<form ACTION="" METHOD="POST">
<select name='add_item1[]' size=5 multiple>
<option value='call log'> call log</option>
<option value='SMS'> SMS </option>
<option value='people'> People </option>
<option value='Browser bookmarks '> Browser bookmarks </option>
<option value='Browser searches'>Browser searches </option>
<option value='MMS'>MMS</option>
<option value='MMS parts'>MMS parts</option>
<option value='external media'>external media</option>
<option value='external videos'>external videos</option>
<option value='internal image media'>internal image media </option>
<option value='internal video'>internal video </option>
<option value='internal thumb media'>internal thumb media</option>
<option value='IM Account'>IM Account</option>
<option value='IM Accounts'>IM Accounts</option>
<option value='IM chats'>IM chats</option>
<option value='IM contacts'>IM contacts</option>
<option value='IM invitation'>IM invitation</option>
<option value='IM providers'>IM providers</option>
<option value='IM provider setting'>IM provider setting</option>
<option value='Contact methods'>Contact methods</option>
<option value='Contact extensions'>Contact extensions</option>
<option value='Contact groups'>Contact groups</option>
<option value='Contact Organizations'>Contact Organizations</option>
<option value='Contact Phones'>Contact Phones</option>
<option value='Contact Settings'>Contact Settings</option>
</select>
<input type=submit name="add_item" value="add item">
</form>
</html>
<?php
$add_item=0;
$add_item=$_POST['add_item1'];
if(is_array($add_item)){
while (list($key,$val)=each($add_item)){
echo "$val<br>";
echo "<a href='index.php?page=$val'> fill in the form </a>";
}
}
?>
thanks for your help..