In phpadmin i look at the form i just submitted and i get Array Array Array etc. What i did was a form and an add button. The add button duplicates the form(so if i press add 4 times i get 4 forms). And the submit button should submit all entries of all forms seperately. But it doesn't, it just says Array Array Array etc. What am i missing in the code..? can i have some help..
<?php session_start(); echo "<font color=white>Welcome, ".$_SESSION['username']."!<br><a href='Logout.php'>Log Out</a></font>"; $add = $_GET['add']; if (isset($add)) { if (empty($_SESSION['username'])) { $_SESSION['username'] = ""; } } ?> <p align='right'><input type='button' name='add' value='add' onClick="parent.location=('<?php $_SERVER['PHP_SELF']; ?>?add=add')"></p> <?php if (isset($_SESSION['username'])){ if (empty($_SESSION['stack'])) { $_SESSION['stack'] = ""; } $i = 0; if(isset($add)){ $i = $_SESSION['i']; $_SESSION['stack'][$i] = " <form enctype='multipart/form-data' action='insert.php' method='post' name='changer'> <p align='center'> <input name='image[$i]' value='image' type='text'> <br> <input type='text' name='hyperlink[$i]'value='hyperlink'> <br> <input type='text' name='currency[$i]' value='currency'> <br> <input type='text' name='name[$i]' value='name'> <br> <input type='text' name='info[$i]' value='info'> <br> <input type='text' name='keywords[$i]' value='keywords'> <br> <input type='text' name='type[$i]' value='type'> <br> </p>"; $_SESSION['i'] += 1; } } else { $_SESSION['stack'][$i] = "You must be logged in!"; } foreach ($_SESSION['stack'] as $key => $val){ echo $_SESSION['stack'][$key]; } ?>