My question is if I can create a Form with the Component that takes (pre-filled) the email and password fields of my joomla users Site and they can connect with their Webmail (this Webmail belongs to a public institution, not Yahoo, Gmail, Hotmail, etc).
Thanks a lot,
Rolando
Assuming that the webmail will accept a login through a Post or a URL then Yes.
Bob
As I told you last time, I'm trying to make a simple form that takes the email and password of my registered users Site and when they submit the form, their Webmail account will open.
My form code is:
<?php $user =& JFactory::getUser();
$db =& JFactory::getDBO();
/* Ingreso al Sitio... */
if ($user->id == 0) {
echo "Por favor ingrese al Sitio...";
return;
}
$query = 'SELECT u.email AS email, u.password AS password FROM #__users AS u LEFT JOIN #__comprofiler AS c ON (u.id = c.user_id) WHERE u.id = ' . $user->id;
$db->setQuery($query);
$data = $db->loadObject();
?>
<p><font
face="Verdana, Arial, Helvetica, sans-serif" size="2">(<span
class="asterisco">*</span>)</font>
Su
correo electrónico es:
<input type="text" name="email" id="email" size="30"
maxlength="40" value="<? echo $user->email; ?>" /></font></p>
Su
clave es:
<input type="hidden" name="password" id="password" size="30"
maxlength="40" value="<? echo $user->password; ?>" /></font></p>
<center>
<INPUT TYPE="hidden" NAME="login" VALUE="login" />
<input type="submit" name="Webmail" value="a) Webmail" />
</center>
The URL that the form should send the data (email and password) is http://correo.abogados.or.cr:8383/login.cgi, I put this URL in the General Tab (Submit URL:The form's "action" URL), but when I run a test with this form appears a white page and my Registered Users can not connect to their Webmail account.
I would like to use the Redirect Plugin or CURL Plugin, but I don't understand how to configure them.
Could you help me please?
Thanks a lot,
Rolando
Please see the help in the Redirect plugin - it's very straightforward.
How to configure the Redirect plugin
The plugin allows you to use the Redirect URL to send data and the user from a ChronoForms Form to another site or to another application on your site. Use this when you need to redirect the user for example to PayPal to authorise a payment, if you just want to transfer data from the form and keep teh user on your site, then the CURL plugin is better.
* First, open the URL params tab and put the url that you want to submit the information to in the Target URL box e.g. http://www.paypal.com/cgi-bin/webscr
* Next click the General Tab and you will see a list of the fields in your form. Put the corresponding names for the site you are sending to in the boxes along-side (often these will be the same as the field names in your form.)
* In the Extra Fields Data box you can enter values for fields that will be the same for each submission. These will often be client or transaction identifiers for the other site. (Note: Putting this information here means that it is never exposed in your form.)
* Lastly on the Redirect params tab, you can set the Redirect Plugin to run before or after Emails are sent. Use this if you need to fine-tune the process flow. Note that the Redirection will be done after any emails are sent and the data saved.
* The Extra Code tab allows you to add extra PHP to run before the Redirection Plugin (running code after redirection is not possible). Normally you will leave these boxes empty; use them if you need to alter the submitted data in some way.
Bob