i_b_winkn_at_u
New Member
I'm making a social network type site, where users can upload their items to be rated. However, I'm trying to improve the way the site is laid out, so want to automatically generate pages once the user inserts a new item. The add.php page has the following form:\[code\]<form action="add.php" method="post" autocomplete="on" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" id="pic"> <p> <label for="jname" class="iconic user"> Name of Jam <span class="required">*</span></label> <input type="text" name="jname" id="jname" value="http://stackoverflow.com/questions/14081508/<?php if (isset($_POST['jname'])) echo $_POST['jname']; ?>" required="required" placeholder="Input your Name of Jam here" /> </p> <p> <select name="jtype" id="jtype" value="http://stackoverflow.com/questions/14081508/<?php if (isset($_POST['jtype'])) echo $_POST['jtype']; ?>" required="required"> <option value="http://stackoverflow.com/questions/14081508/jam">Jam</option> <option value="http://stackoverflow.com/questions/14081508/jelly">Jelly</option> <option value="http://stackoverflow.com/questions/14081508/marmalade">Marmalade</option> <option value="http://stackoverflow.com/questions/14081508/preserve">Preserve</option> </select> </p> <p> <label for="producer" class="iconic user"> Jam Producer <span class="required">*</span></label> <input type="text" name="producer" id="producer" value="http://stackoverflow.com/questions/14081508/<?php if (isset($_POST['producer'])) echo $_POST['producer']; ?>" required="required" placeholder="Input the producer of the Jam here" /> </p> Upload a picture of your jam: </br> </br> <input name="userfile" type="file" /> </br> <input type="submit" name="submit" value="http://stackoverflow.com/questions/14081508/Register" /> <input type="hidden" name="submitted" value="http://stackoverflow.com/questions/14081508/TRUE" /></form>\[/code\]When the form is submitted, I then want it to generate a new page for that new user created item. Is there a fairly simple way of doing this?Cheers