Forums

Please help - How to.

mlittle 15 Apr, 2008
I have a form that is already being used on another site and want to use it in my Joomla Site. I just need some direction on how to go about this with Chrono:
<script language='JavaScript' src='https://www.xxxx.com/client/validate-login.js'></script>
<center>
<form name="loginform" method="POST" action="https://www.ccc.com/client/client-login.php" 
onSubmit="if ( checkInput() ) { document.loginform.submit() } else { return false }">

<table cellpadding=15 cellspacing=0 border=1>
<tr>
<td bgcolor="#a6b7c7">
   <b>Username</b>
   <br>
   <input name="username" value="" size="40" maxlength="50">
</td>
</tr>
<tr>
<td bgcolor="#a6b7c7">
   <b>Password</b>

   <br>
   <input name="password" type="password" value="" size="40" maxlength="20">
</td>
</tr>
</table>
<p>

<input name="login" value="Login" type="SUBMIT">
<input name="Reset" value="Reset Form" type="RESET">
</form>
</center>


Edited to add code tags.<br><br>Post edited by: GreyHead, at: 2008/04/15 16:26
GreyHead 15 Apr, 2008
Hi mlittle,

Most of the code - except for the Form Tags goes into the HTML code box:

 <script language='JavaScript' src='https://www.xxxx.com/client/validate-login.js'></script>
<center>
<table cellpadding=15 cellspacing=0 border=1>
  <tr>
    <td bgcolor="#a6b7c7">
      <b>Username</b><br>
      <input name="username" value="" size="40" maxlength="50">
    </td>
  </tr>
  <tr>
    <td bgcolor="#a6b7c7">
      <b>Password</b><br>
      <input name="password" type="password" value="" size="40" maxlength="20">
    </td>
  </tr>
</table>
<p>
<input name="login" value="Login" type="SUBMIT">
<input name="Reset" value="Reset Form" type="RESET">
</p>
</center>
This goes in the Submit URL on the Form URLs tab
https://www.ccc.com/client/client-login.php
and this goes in the Form tag attachment box in the General tab:
onSubmit="if ( checkInput() ) { document.loginform.submit() } else { return false }
You will need to change 'loginform' here to the ChronoForms version which will probably be ChronoContact_loginform.

Bob
mlittle 15 Apr, 2008
Wow, thanks for the quick reply. Just out of curiosity, what does ChronoContact_loginform refer to. My form is called ClientLogin. Should this be ChronoContact_ClientLogin instead?
Max_admin 16 Apr, 2008
Yes!!

Cheers

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.