You can probably tell from the Subject Line that I don't even know enough to phrase my question correctly.
I would like to add 250 users to a Wordpress blog of mine. The code to add a single user via a form is below. Assuming I could write the code to take names, passwords, etc., from a CSV file, how do I simulate submitting the form 250 times?
Thanks very much!
Jerry
php:
<div class="wrap">
<h2>Add New User</h2>
<p>Users can <a href="http://www.baklava.org/blog/wp-register.php">register themselves</a> or you can manually create users here.</p><form action="" method="post" name="adduser" id="adduser">
<input type="hidden" name="wpnonce" value="0df235c514" /><input type="hidden" name="wp_http_referer" value="/blog/wp-admin/users.php" /> <table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th scope="row" width="33%">Nickname <input name="action" type="hidden" id="action" value="adduser" /></th>
<td width="66%"><input name="user_login" type="text" id="user_login" value="" /></td>
</tr>
<tr>
<th scope="row">First Name </th>
<td><input name="first_name" type="text" id="first_name" value="" /></td>
</tr>
<tr>
<th scope="row">Last Name </th>
<td><input name="last_name" type="text" id="last_name" value="" /></td>
</tr>
<tr>
<th scope="row">E-mail</th>
<td><input name="email" type="text" id="email" value="" /></td>
</tr>
<tr>
<th scope="row">Website</th>
<td><input name="url" type="text" id="url" value="" /></td>
</tr>
<tr>
<th scope="row">Password (twice) </th>
<td><input name="pass1" type="password" id="pass1" />
<br />
<input name="pass2" type="password" id="pass2" /></td>
</tr>
</table>
<p class="submit">
<input name="adduser" type="submit" id="adduser" value="Add User »" />
</p>
</form>
</div>