blackrat999 Posted February 27, 2009 Share Posted February 27, 2009 Hi. Im sure this is a really simple error somewhere but its beyond me im afraid - grateful for any help please: I have a Joomla site with a registration page which i am trying to add a field to the "create account" page so that an extra line can be completed and sent to the admin when a person registers. i have added the field in the database and it appears to work fully apart from it doesnt send the line and the entry made to the admin. could someone please tell me how to do this - the field that i have added and doesnt work refers to the "bar card number" which is not a compulsory field. many thanks in advance. this is the page of code for the relevant page: <?php // no direct access defined('_JEXEC') or die('Restricted access'); ?> <script type="text/javascript"> <!-- Window.onDomReady(function(){ document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); } ); }); // --> </script> <?php if(isset($this->message)){ $this->display('message'); } ?> <form action="<?php echo JRoute::_( 'index.php?option=com_user' ); ?>" method="post" id="josForm" name="josForm" class="form-validate"> <?php if ( $this->params->def( 'show_page_title', 1 ) ) : ?> <div class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>"><?php echo $this->escape($this->params->get('page_title')); ?></div> <?php endif; ?> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane"> <tr> <td width="30%" height="40"> <label id="namemsg" for="name"> <?php echo JText::_( 'Name' ); ?>: </label> </td> <td> <input type="text" name="name" id="name" size="40" value="<?php echo $this->user->get( 'name' );?>" class="inputbox required" maxlength="50" /> * </td> <td width="30%" height="40"> </td> <td> </td> </tr> <tr> <td height="40"><?php echo JText::_( 'Bar card number' ); ?></td> <td><input type="text" name="barcard" id="barcard" size="40" value="<?php echo $this->user->get( 'barcard' );?>" class="inputbox" maxlength="50" /></td> </tr> <tr> <td height="40"> <label id="usernamemsg" for="username"> <?php echo JText::_( 'Username' ); ?>: </label> </td> <td> <input type="text" id="username" name="username" size="40" value="<?php echo $this->user->get( 'username' );?>" class="inputbox required validate-username" maxlength="25" /> * </td> </tr> <tr> <td height="40"> <label id="emailmsg" for="email"> <?php echo JText::_( 'Email' ); ?>: </label> </td> <td> <input type="text" id="email" name="email" size="40" value="<?php echo $this->user->get( 'email' );?>" class="inputbox required validate-email" maxlength="100" /> * </td> </tr> <tr> <td height="40"> <label id="pwmsg" for="password"> <?php echo JText::_( 'Password' ); ?>: </label> </td> <td> <input class="inputbox required validate-password" type="password" id="password" name="password" size="40" value="" /> * </td> </tr> <tr> <td height="40"> <label id="pw2msg" for="password2"> <?php echo JText::_( 'Verify Password' ); ?>: </label> </td> <td> <input class="inputbox required validate-passverify" type="password" id="password2" name="password2" size="40" value="" /> * </td> </tr> <tr> <td colspan="2" height="40"> <?php echo JText::_( 'REGISTER_REQUIRED' ); ?> </td> </tr> </table> <button class="button validate" type="submit"><?php echo JText::_('Register'); ?></button> <input type="hidden" name="task" value="register_save" /> <input type="hidden" name="id" value="0" /> <input type="hidden" name="gid" value="0" /> <?php echo JHTML::_( 'form.token' ); ?> </form> Quote Link to comment Share on other sites More sharing options...
andrew_biggart Posted February 27, 2009 Share Posted February 27, 2009 try going on joomla.com and downloading one of the components they have on there for the contact forms, ive used them before without having to do very much Quote Link to comment Share on other sites More sharing options...
blackrat999 Posted February 27, 2009 Author Share Posted February 27, 2009 try going on joomla.com and downloading one of the components they have on there for the contact forms, ive used them before without having to do very much thanks but the template is Joomla 1.0 not 1.5 and all the ones i have tried wont work - rather hoping someone can finish off my code attempts for me. thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.