Forums

Redirect after register a new user

Hansueli 02 Mar, 2014
I have a Form to register a new user.
After the registration I like to go to the Link:
http://ifsda.org/index.php/members/userprofile/M-2657
Where M-2657 is the username
How can I do this redirect?
[attachment=0]form.jpg[/attachment]
Max_admin 09 Mar, 2014
Using a "custom code" action, you may use this code:

<?php
$mainframe = JFactory::getApplication();
$mainframe->redirect("http://ifsda.org/index.php/members/userprofile/".$form->data("username"));

Where "username" is the name of the "username" field in your form!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger