We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10405
    • 288 Posts
    Hi, is there a way of sending data inputted into a form inside a chunk, to an ASP form on a completely external page (i.e on a different, unrelated site)?

    This is the code I have for the form chunk:

    <form action="https://externalsite.com/default.asp" name="bookahotel" method="post" class="bookahotelform" target="_blank" >
    <input onfocus="this.value = ’’; this.onfocus = function () {}" name="_Date" size="6" type="text" value="DD/MM/YYYY" />
    <a href="javascript:showCal(’Calendar1’)"><img src="/images/datepicker.gif" alt="Date picker"></a>
    <select name="_Country" size="1">
    <option value="GB" selected>United Kingdom</option>
    <option value="US">USA</option>
    </select>
    <input onfocus="this.value = ’’; this.onfocus = function () {}" name="towncity" size="12" value="Town/City" type="text" />
    <select name="_EnquiryType" size="1" >
    <option>No. of nights</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    </select>
    <input name="bookahotel_search" value="" type="image" src="/images/bookahotel_search.gif" class="noborder" />
    <p class="text_normalblue"><a href="https://externalsite.com/default.asp" title=Advanced search" target="_blank">Advanced search</a> | <a href="#" title="Member login">Member login</a></p>
    </form>

    So it’s just a basic form really, but somehow I need the values inputted into it to be transferred to the ASP page on the external site- can this be done? Basically the external page contains a similar form, what we want is for that form to be pre-filled with the information from the initial (internal) form when the user clicks the Submit button.
      • 9575
      • 19 Posts
      If you want the form to be prefilled then it’s the remote site/ASP page that needs to accept those values being posted to it, it won’t work just simply posting the information to it if the ASP page isn’t set to accept the values being posted.
        • 10405
        • 288 Posts
        Okay, thanks for the info- looks like it might be tricky.

        They’re okay about the external form being filled with the inputted values- the form sits on another site owned by the same client.

        Might not be a way round this then...hmmm...