Hi there
I'm trying to get my registration databound form working. It seems to be working fine on my local machine, but now that I uploaded it to the final server, I came across the following error message on users/register.php. Which is pretty much a copy of the extended user tutorial.
This is my code of the users/register.php page:
Am I missing something? Thanks in advance!

I'm trying to get my registration databound form working. It seems to be working fine on my local machine, but now that I uploaded it to the final server, I came across the following error message on users/register.php. Which is pretty much a copy of the extended user tutorial.
- Code: Select all
ERROR: Tag "input" of type 'bound' needs to be within a Data-bound form
This is my code of the users/register.php page:
- Code: Select all
<?php require_once( '../admin/cms.php' ); ?>
<cms:template title='Registration' hidden='1' />
<cms:embed 'header.html' />
<body>
<cms:if k_logged_in >
<!-- what is an already logged-in member doing on this page? Send back to homepage. -->
<cms:redirect k_site_link />
</cms:if>
<main>
<div class="single-wrapper">
<div class="single-wrapper-inner">
<h2>Register</h2>
</div>
<div class="intro-wrapper">
<!-- are there any success messages to show from previous actions? -->
<cms:set success_msg="<cms:get_flash 'success_msg' />" />
<cms:if success_msg >
<div class="notice">
<cms:if success_msg='0' >
Your account has been created successfully and we have sent you an email.<br />
Please click the verification link within that mail to activate your account.
<cms:else />
Activation was successful. You can now log in!<br />
<a class="btn" href="<cms:login_link redirect=k_site_link />">Login</a>
</cms:if>
</div>
<cms:else />
<!-- now the real work -->
<cms:set action="<cms:gpc 'act' method='get'/>" />
<!-- is the visitor here by clicking the account-activation link we emailed? -->
<cms:if action='activate' >
<h1>Activate account</h1>
<cms:process_activation />
<cms:if k_success >
<cms:set_flash name='success_msg' value='2' />
<cms:redirect k_page_link />
<cms:else />
<cms:show k_error />
</cms:if>
<cms:else />
<!-- show the registration form -->
<cms:form
masterpage=k_user_template
mode='create'
enctype='multipart/form-data'
method='post'
anchor='0'
>
<cms:if k_success >
<cms:check_spam email=frm_extended_user_email />
<cms:db_persist_form
_invalidate_cache='0'
k_page_name = "<cms:random_name />"
k_publish_date = '0000-00-00 00:00:00'
/>
<cms:if k_success >
<cms:send_mail from="<cms:php>echo K_EMAIL_FROM;</cms:php>" to=frm_extended_user_email subject='New Account Confirmation' debug='1'>
Please click the following link to activate your account:
<cms:activation_link frm_extended_user_email />
Thanks,
Website Name
</cms:send_mail>
<cms:set_flash name='success_msg' value='1' />
<cms:redirect k_page_link />
</cms:if>
</cms:if>
<cms:if k_error >
<div style="color:red;margin-bottom:5px;"><cms:each k_error ><cms:show item /><br /></cms:each></div>
</cms:if>
<label class='long' for='k_page_title'>Name:</label>
<cms:input name='k_page_title' type='bound' style='width:200px' />
<label class='long' for="extended_user_email">Email:</label>
<cms:input name='extended_user_email' type='bound' style='width:200px' />
<label class='long' for='extended_user_password'>Password:</label>
<cms:input name='extended_user_password' type='bound' style='width:200px' />
<label class='long' for='extended_user_password'>Repeat password:</label>
<cms:input name='extended_user_password_repeat' type='bound' style='width:200px' />
<input type='submit' name='submit' value='Register'/>
</cms:form>
</cms:if>
</cms:if></div>
</div>
</main>
<cms:embed 'single-header.html' />
<cms:embed 'footer.html' />
<?php COUCH::invoke(); ?>
Am I missing something? Thanks in advance!