jenneke Posted May 8, 2007 Share Posted May 8, 2007 Here is the code with only one field selected. Thank you for your time, Jenneke $result=mysql_query("SELECT * FROM links WHERE id='$id'"); if ($row=mysql_fetch_array($result)) { echo ' <br><br><br> <h3>Links</h3> <form name="form1" method="post" action="links_update.php?id='.$id.'> <p> <br> <select name="area"> <option selected>' . $row["area"] . '</option> <option>Footprint calculators</option> <option>Water saving</option> <option>Energy saving</option> <option>Home</option> <option>Garden</option> <option>Directory services</option> <option>At work</option> <option>Environmental labelling</option> <option>Recycling</option> <option>Investment</option> <option>Food</option> <option>Shopping</option> <option>Travel</option> <option>For the Kids</option> <option>Green groups</option> <option>Miscellaneous</option> </select> <br><br> <input name="website" type="text" size="53" value="'.htmlentities($row['website']).'"> : Website <br> </p> <p> <textarea name="details" cols="40" rows="5">' . $row["details"] . '</textarea> : Details<br> <br> <p> <input type="submit" name="Submit" value="Submit"> </p> </form> '; } else { echo '<br><br>sorry, this entry does not exist<br><br>'; } mysql_close(); include('footer.html'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/50440-php-form-modify-page/ Share on other sites More sharing options...
neel_basu Posted May 8, 2007 Share Posted May 8, 2007 Are you making 2 Threads on the Same topic ?? Why ?? Quote Link to comment https://forums.phpfreaks.com/topic/50440-php-form-modify-page/#findComment-247816 Share on other sites More sharing options...
jenneke Posted May 8, 2007 Author Share Posted May 8, 2007 sorry about that. it was a mistake made because my session timed out when i tried to reply to the last response to my question. but cant figure out how to delete this entry. Feel free to delete it if you know how. Quote Link to comment https://forums.phpfreaks.com/topic/50440-php-form-modify-page/#findComment-247847 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.