ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Return Function on Registration Form?

June 28, 2007 9:00pm

Subscribe [2]
  • #1 / Jun 28, 2007 9:00pm

    Brainwrek

    75 posts

    The RETURN function, as outlined here, doesn’t seem to work when someone Registers as a new member.  I’ve tried everything I can think of to change the specialty template {link} output, but it always uses the default:

    <a href="http://www.mysite.com">My Site Name</a>

    But I need this instead:

    <a href="http://www.mysite.com/index.php/members/index/">MEMBERS AREA</a>

    In building the Registration form, I have tried:

    return="members/index"
    return="members/index|MEMBERS AREA"
    return="http://www.mysite.com/index.php/members/index/"

    Nothing has worked.  Any ideas?

  • #2 / Jun 28, 2007 9:13pm

    Sue Crocker

    26054 posts

    The return function mentioned is for the login form, not the registration form.

    There is a work around found in the EEWiki:// Standalone Registration Form

    Does that help?

  • #3 / Jun 28, 2007 10:39pm

    Brainwrek

    75 posts

    Yes, thank you Sue.  I did read that wiki article, and tried implementing a hard-coded version of the form as it suggests.  But the RET hidden field does not work.  For some reason that variable is not being sent through the form.  :(

    Anyone know how to make this work?

  • #4 / Jun 28, 2007 10:50pm

    Sue Crocker

    26054 posts

    If you view the source to the form, do you see the hidden value?

    How about a link to look at?

  • #5 / Jun 29, 2007 12:29am

    Brainwrek

    75 posts

    Here’s the “view source” code as it appears in the parsed template.  You can see that the ACT & XID values are properly populated (Yay!).  And I’ve tried many different formats in the RET and FROM fields.  As described above, I’ve tried full URLS, and short URL segments (“members/index”).  I also tried with and without the description tagged on to the end like this (“http://www.mysite.com/index.php/members/index/|MEMBERS AREA”).  No joy, I’m afraid.  So to answer you more directly… yes, the RET field is in my code.  It’s just not performing the way it should. Everything else works fine though.

    <table cellpadding="0" cellspacing="5">
        <form method="post" action="http://www.mysite.com/index.php/members/index/">
        <input type="hidden" name="XID" value="fa6bad5b268f94c47814eb06f5fe75cbb3709273" >
        <input type="hidden" name="ACT" value="7" >
        <input type="hidden" name="RET" value="http://www.mysite.com/index.php/members/index/" >
        <input type="hidden" name="FROM" value="http://www.mysite.com/index.php/members/index/" >
          <tr>
            <td><input name="username" type="text"  size="30" value="Select a Username…" onclick="this.value = (this.value=='Select a Username…')? '' : this.value;" style="color:#0000FF; font-style:oblique; font-family:Arial,Helvetica,sans-serif; font-weight:bold; font-size:20px; border-width:1px; border-color:#000000; border-style:solid; background-color: #EFEFEF; padding: 2px;"></td>
          </tr>
          <tr>
            <td><input name="email" type="text"  size="30" value="Enter Email Address…" onclick="this.value = (this.value=='Enter Email Address…')? '' : this.value;" style="color:#0000FF; font-style:oblique; font-family:Arial,Helvetica,sans-serif; font-weight:bold; font-size:20px; border-width:1px; border-color:#000000; border-style:solid; background-color: #EFEFEF; padding: 2px;"></td>
          </tr>
          <tr>
            <td><input name="password" type="text"  size="30" value="Choose a Password…" onclick="this.value = (this.value=='Choose a Password…')? '' : this.value;" style="color:#0000FF; font-style:oblique; font-family:Arial,Helvetica,sans-serif; font-weight:bold; font-size:20px; border-width:1px; border-color:#000000; border-style:solid; background-color: #EFEFEF; padding: 2px;"></td>
          </tr>
          <tr>
            <td><input name="password_confirm" type="text"  size="30" value="Confirm Password…" onclick="this.value = (this.value=='Confirm Password…')? '' : this.value;" style="color:#0000FF; font-style:oblique; font-family:Arial,Helvetica,sans-serif; font-weight:bold; font-size:20px; border-width:1px; border-color:#000000; border-style:solid; background-color: #EFEFEF; padding: 2px;"></td>
          </tr>
          <tr>
            <td><input name="submit" type="submit" style="font-style:normal; font-family:Tahoma,Arial,Helvetica,sans-serif; font-weight:bold; font-size:22px;" value="Activate Me!"></td>
          </tr>
          </form>
    </table>

    Yeah… I know… ugly tables.  But I like ‘em.

  • #6 / Jun 29, 2007 2:47am

    Brainwrek

    75 posts

    BTW… I just upgraded to EE 1.6.0, so perhaps something has changed since that wiki article was written?

  • #7 / Jun 29, 2007 4:53pm

    Brainwrek

    75 posts

    Is anyone else having a problem getting the return function to work in 1.6.0?  Any glaring problems with my code?

  • #8 / Jun 29, 2007 5:12pm

    Lisa Wess

    20502 posts

    I just tested this with the login form tag, copy and pasted straight from the docs you linked to, and it worked perfectly.  That doesn’t work for you at all?

  • #9 / Jun 29, 2007 6:16pm

    Sue Crocker

    26054 posts

    The login form works, but not the *Registration* form. The link in my post is what isn’t working with 1.6.

  • #10 / Jun 29, 2007 6:19pm

    Brainwrek

    75 posts

    Yes Sue.  Thank you for making that distinction!  The link in my original post was wrong.  BTW… what is the FROM field supposed to do?

  • #11 / Jun 29, 2007 6:24pm

    Lisa Wess

    20502 posts

    That’s an unsupported method, really, not an officially sanctioned one, so I’m going to move this to the how-to forum.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases