Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9035969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:52:47+00:00 2026-06-16T08:52:47+00:00

I went through several posts but I am not able to find an answer

  • 0

I went through several posts but I am not able to find an answer for what I’m trying to do. If I missed something pls point me to the post.

I have a form that appears in small box. What I want to happen is to instead of redirecting the visitor to a different page in order to see the ‘Thank you’ message to keep him to the same page and change the content of the div.

I have managed to go half way there (thanks to a post found here).

I am able to not redirect the visitor plus show him a ‘Thank You’ message, but I am not able to refresh the content. I still see the form.

I’m only familiar with html, css and a bit php so if there’s a solution that doesn’t include jquery, etc. would be great.

Here’s what I have so far:

HTML

<div id="mc_embed_signup">  
                    <form action="" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" novalidate>
                    <div class="mc-field-group">
                    <input id="firstname3" type="text" value="" name="FNAME" placeholder="'Ονομα">
                    </div>

                    <div class="mc-field-group">
                    <input id="primaryemail3" type="email" value="" name="EMAIL" placeholder="Email">
                    </div>

                    <div id="mce-responses" class="clear">
                    <div class="response" id="mce-error-response" style="display:none"></div>
                    <div class="response" id="mce-success-response" style="display:none"></div>
                    </div> 

                    <div class="myResultDiv">

                    <input name="subscribe" class="button_link hover_fade large_button red button_widget" type="submit" value="ΣΤΕΙΛΤΕ ΤΟ ΔΩΡΟ ΜΟΥ!"></div>
                    </form>

                    <?php if (isset($_POST['subscribe'])) : ?>
                    <p>Thank you for subscribing!</p>
                    <?php endif; ?>

                    </div>

                    <div>
                    <p class="under_button2"></p>

                    <div class="af-clear">
                    </div>

                    </div>
                    </div>                  
                    <!--End mc_embed_signup-->      
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T08:52:48+00:00Added an answer on June 16, 2026 at 8:52 am

    put your conditional logic outside the div like…

    <?php if (isset($_POST['subscribe'])) { ?>
        <p>Thank you for subscribing!</p>
    <?php }else{ ?>
    
       ---- FORM DIV HERE ----
    <?php } ?>
    

    This is under the assumption that you are looking for a server-side solution. i.e. you submit the form and rebuild the page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I went through similar questions here but did not find an answer to the
I went through several examples posted online but I cant answer my question. I
I went through tons of questions about this subject, but still failed to find
I went through many links like this , this and this , but not
I went through this post. Detect Click into Iframe using JavaScript But still, I
I went through the example from apple MoviePlayer on iPhone Im trying to overlay
I went through the dev portal provisioning process twice now trying to get it
I just went through trying to make an alarm clock app with local notifications
After having went through the GWT StockWatcher tutorial , I find a small UI
I went through a few blogs/posts and there are some good solutions for input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.