Hi KK,
I made with couch a link exchange form, which check existing reciprocal for each submitted link.
I got one problem, though: I need to check if the website link submitted already exist in the database before adding it. I tried many solution, but can't make it work. If you can help, I would really appreciate it, I'm sure there's a simple solution, but I can't put my finger on it.
The template is link.php, the variable to check is weburl. I got:
<cms:if k_success >
<cms:set my_var=weburl />
<cms:set goturl='0' />
<cms:pages masterpage='link.php'>
<cms:if my_var==weburl><cms:set goturl='1' /></cms:if>
</cms:pages>
<cms:if goturl=='0' >
<cms:check_spam email=frm_email />
<cms:db_persist_form
_invalidate_cache='0'
_auto_title='1'
/>
<cms:set_flash name='submit_success' value='1' />
<cms:redirect k_page_link />
</cms:if>
</cms:if>
It should work, I don't understand why it doesn't...
Thanks
I made with couch a link exchange form, which check existing reciprocal for each submitted link.
I got one problem, though: I need to check if the website link submitted already exist in the database before adding it. I tried many solution, but can't make it work. If you can help, I would really appreciate it, I'm sure there's a simple solution, but I can't put my finger on it.
The template is link.php, the variable to check is weburl. I got:
<cms:if k_success >
<cms:set my_var=weburl />
<cms:set goturl='0' />
<cms:pages masterpage='link.php'>
<cms:if my_var==weburl><cms:set goturl='1' /></cms:if>
</cms:pages>
<cms:if goturl=='0' >
<cms:check_spam email=frm_email />
<cms:db_persist_form
_invalidate_cache='0'
_auto_title='1'
/>
<cms:set_flash name='submit_success' value='1' />
<cms:redirect k_page_link />
</cms:if>
</cms:if>
It should work, I don't understand why it doesn't...
Thanks