Jump to content

How can i integrate dropdown form to Wordpress registeration?


ofyav

Recommended Posts

Hi,

At first sorry for my bad english..

 

I have a ajax dropdown form and i want to use it for wordpress register page.

You can look over it from http://www.dhtmlgoodies.com/index.html?whichScript=ajax_chained_select.

 

For e-mail field,

in "wp-login.php";

input type="text" name="user_email" id="user_email" class="input" value="<?php echo attribute_escape(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>

 

and in "wp-includes/registration.php";

if ( empty($user_email) )
	$user_email = '';
$user_email = apply_filters('pre_user_email', $user_email);

 

My dropdown code in "wp-login.php" is;

<form action="" method="post">
<table>
<tr>
	<td>Country: </td>
	<td><select id="dhtmlgoodies_country" name="dhtmlgoodies_country" onchange="getCityList(this)">
		<option value="">Select a country</option>
		<option value="dk">Denmark</option>
		<option value="no">Norway</option>
		<option value="us">US</option>
	</select>
	</td>
</tr>
<tr>
	<td>City: </td>
	<td><select id="dhtmlgoodies_city" name="dhtmlgoodies_city">

	</select>
	</td>
</tr>

 

So how can i mount this two value to sql?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.