Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Skipping the activation email – have I got the theory right?


devweb
Participant

@devweb

HAve this so far:

<form method=”post” action=”<?php echo site_url(‘activate?key=$user_name’); ?>”>

<input type=”submit” name=”activation” value=”Activate now” />

</form>

This returns ‘incorrect activation key’ – great, on the right road.

Now in place of $user_name, I need a function, but I can’t figure out how to get it in. I thought maybe putting this in there would do the trick:

$key = @mysql_query(‘SELECT activation_key FROM wp_signups WHERE login_user=$user_name’);

Then

<form method=”post” action=”<?php echo site_url(‘activate?key=$key’); ?>”>

<input type=”submit” name=”activation” value=”Activate now” />

</form>

Don’t think the syntax is right above and neither is it in the form above, Nicolagreco or J can you lend your expertise?

Thanks very much

Skip to toolbar