How to write to another file?
Posted: Sun Jan 04, 2009 6:09 pm
Hi there!
I was wondering how I could add new entries to a select list?The form to add new a new entry:So if I write "cookies" and press "Add!", I want the script to addbefore "</select>".
Thanks for any help.
I was wondering how I could add new entries to a select list?
Code: Select all
<select name="xx">
<option value="banana">banana</option>
<option value="apples">cake</option>
<option value="cake">cake</option>
</select>Code: Select all
<form enctype="multipart/form-data" action="add_entry.php" method="post">
<input type="text" name="what" /> <input type="submit" value="Add!" />
</form>Code: Select all
<option value="cookie">cookie</option>Thanks for any help.