A question not worthy of programmers...

4 replies
but I didn't know where else to put it. So forgive me.

Right now I have a aweber opt-in form (with confirmation email OFF). The form is generated and housed by aweber. It is not on my "main site" or anywhere else. I did this intentionally.

By default aweber sends a blanket thank you message on the screen with a link to my "main site" after the user submits the form.

I don't want them to go to my "main site" or any site for that matter at the moment.

I can disable this. However if I disable it, after the user submits their info, the screen refreshes and a blank opt in form appears again - making the user think it didn't go through thereby annoying them a little and making them submit a second time when they didn't have to. (A welcome email follows shortly after they sign up)

I also don't want to send them to a non-published thank you page since they will then have the URL of my "main site" which I don't want them to go to just yet.

And I don't want to send them to a non-related website just for a thank you.

Any suggestions?
#programmers #question #worthy
  • Profile picture of the author Brandon Tanner
    If you want to keep them on the same page, then one option would be to show them a Javascript popup message when they click 'submit', that confirms that their details have been submitted.

    If you want to do that, then locate the submit button (or the submit "image") in the HTML code, then wrap a <div> around it. Use the following code for that div...

    <div onclick="alert('Your information has been submitted!')">
    <!-- Aweber submit button or submit image goes here -->
    </div>


    And change the part in red to whatever you want it to say. Just make sure that you keep single quotes around the part in red.

    The example above assumes that you are using Aweber's raw HTML code. If you are using their Javascript code, then you would simply put their Javascript code inside that <div>.
    Signature

    {{ DiscussionBoard.errors[6605371].message }}
    • Profile picture of the author Pasquach
      Brandon, yes this is exactly what I am talking about.

      And I am using aweber to host it. I am using the 3rd option. The single line http:// address.

      How can I make it happen using that? Or I can't?
      {{ DiscussionBoard.errors[6605766].message }}
      • Profile picture of the author Brandon Tanner
        Originally Posted by Pasquach View Post

        Brandon, yes this is exactly what I am talking about.

        And I am using aweber to host it. I am using the 3rd option. The single line http:// address.

        How can I make it happen using that? Or I can't?
        Do you mean the actual opt-in form is hosted at Aweber?

        If so, I don't know that there's anything you can do in that situation. I assumed the form was on your site.
        Signature

        {{ DiscussionBoard.errors[6606072].message }}
  • Profile picture of the author ALicenseToCode
    Here's what I would do to make this happen quickly and easily.

    Set your Website Return Link in aweber to a url like this: YOURSITEURL.com?newsletter_signup=1

    Then put this PHP on your page where you'd like to say thank you for signing up:

    <?php if($_GET['newsletter_signup']==1) { ?>
    <div>
    Thank You For Signing Up! You Can Put Any HTML You Want HERE!
    </div>
    <?php } ?>


    The ?newsletter_signup=1 passes a variable back to your page which PHP fetches in the supervariable $_GET , hope this helps.
    {{ DiscussionBoard.errors[6605919].message }}

Trending Topics