Update form
-
I am pretty new to coding wordpress plugins. What I am wondering is how I go about updating data from a form. I know it uses option_update but not sure in what syntax i require this. This is the code I am working with:
<form id="wintersnow-settings" action=""> <label>Set number of snowflakes:</label> <input name="numofflakes" size="5" value="<?php echo get_option('numofflakes') ?>" type="text" /> (more than 30 - 40 not recommended)<br /> <label>Set max size of flakes:</label> <input name="maxflakesize" value="<?php echo get_option('maxflakesize') ?>" type="text" /> (recommended 30)<br /> <label>Set min size of flakes</label> <input name="minflakesize" value="<?php echo get_option('minflakesize') ?>" type="text" /> (recommended 8)<br /> <label>Snow Location:</label> <select name="snowloc" size="1"> <option selected="" value="1">All Over Snowing</option> <option value="2">Left Side Snowing</option> <option value="3">Center Snowing</option> <option value="4">Right Size Snowing</option> </select><br /> <input type="submit" value="Update" />
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Update form’ is closed to new replies.