SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2009
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help adding a function to a form

    I have a form, like the one below:
    Code:
        <form name="form1" method="post" action="https://www.website.com/app/contactsave.asp">
            <p>
                <input name="merchantid" type="hidden" id="merchantid" value="000000" />
                <input name="ARThankyouURL" type="hidden" id="ARThankyouURL" value="www.renthome2own.com/thankyou/index.php" />
                <input name="copyarresponse" type="hidden" id="copyarresponse" value="1" />
                <input name="custom" type="hidden" id="custom" value="0" />
                <input name="defaultar" type="hidden" id="defaultar" value="000000" />
                <input name="allowmulti" type="hidden" id="allowmulti" value="0" />
                <input name="visiblefields" type="hidden" id="visiblefields" value="Email1" />
                <input name="requiredfields" type="hidden" id="requiredfields" value="Email1" />
                         
                <input type="text" class="textbox_1" name="Email1" />
                  
            <br />
            </p>
            <p>
                <input type="submit" class="textbox_button" value="" name="cmdSubmit" />
            </p>
        </form>
    what I want to do is add something like this to the end:
    ?Email={email}

    Which will pass the users email address to the thank you page. Any one have any ideas?
    AllTopExchange - Banner Ad Network
    40,000+ Free Impressions When You Join.

    TrinityClicks Best GPT Site EVER! Join Now!

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm lost.. what's the problem here? Just add another input field for email?
    TierEngine - Reliable Dedicated Servers and Colocation
    99.9% Uptime Guaranteed
    View our Dedicated Server Deals!
    Have questions? We can help. 888.233.6133 - support(at)tierengine.com

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2009
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Encrypted View Post
    I'm lost.. what's the problem here? Just add another input field for email?
    I want to somehow add ?Email={email}

    to

    https://www.website.com/app/contactsave.asp

    and when the user clicks submit, they will then be redirected to the thank you page that will output the email address they initially submitted in the form.
    AllTopExchange - Banner Ad Network
    40,000+ Free Impressions When You Join.

    TrinityClicks Best GPT Site EVER! Join Now!

  4. #4
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see that, but why don't you just display the data from the form on website.com/app/contactsave.asp ... using something like this..

    $user_email = $_REQUEST['email'];
    echo ("Thank you".$user_email.". You have successfully submitted.. blah blah");

    The users email is in one of those input fields, correct?



    Here's another example..

    <div>
    <center>
    <b>Thank you <?php if(isset($_REQUEST['name'])){print stripslashes($_REQUEST['name']);} ?></b>
    <br>Your message has been sent
    <p><a href="<?php print $continue; ?>">Click here to continue</a></p>
    </center>
    </div>
    TierEngine - Reliable Dedicated Servers and Colocation
    99.9% Uptime Guaranteed
    View our Dedicated Server Deals!
    Have questions? We can help. 888.233.6133 - support(at)tierengine.com

  5. #5
    SitePoint Enthusiast
    Join Date
    Dec 2009
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the field where the user inputs their email:
    <input type="text" class="textbox_1" name="Email1" />

    But I want the email the input to show here:
    thankyou.php

    Here is an example:
    http://www.renttoownhomelist.com/
    AllTopExchange - Banner Ad Network
    40,000+ Free Impressions When You Join.

    TrinityClicks Best GPT Site EVER! Join Now!

  6. #6
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm.. that's tricky. You might have to add something onto the /app/contactsave.asp page to make it forward the email value to the thankyou.php page.

    I have no idea how it can be done the way you're trying to do it. Good luck though.
    TierEngine - Reliable Dedicated Servers and Colocation
    99.9% Uptime Guaranteed
    View our Dedicated Server Deals!
    Have questions? We can help. 888.233.6133 - support(at)tierengine.com

  7. #7
    SitePoint Enthusiast
    Join Date
    Dec 2009
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Encrypted View Post
    Hmm.. that's tricky. You might have to add something onto the /app/contactsave.asp page to make it forward the email value to the thankyou.php page.

    I have no idea how it can be done the way you're trying to do it. Good luck though.
    /app/contactsave.asp is hosted by 1shoppingcart.com so it can't be modified. But whoever created the demo I posted, is also using 1shoppingcart. Just wish I know how they did it.
    AllTopExchange - Banner Ad Network
    40,000+ Free Impressions When You Join.

    TrinityClicks Best GPT Site EVER! Join Now!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •