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 8955491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:34:17+00:00 2026-06-15T14:34:17+00:00

I’m trying to use a custom form, to populate over fields in another form,

  • 0

I’m trying to use a custom form, to populate over fields in another form, which is hosted on jotform.

With rails, moving over info is pretty easy, but I’m not sure how to do it in php.

I have a custom form set up which has the fields for the number of guests, the check in date, and the check out date.

What I’d like to do is to make it so that when I hit submit on the first form, it would populate the data on the reservation form.

The reservation is hosted on jotform.

I tried testing this by matching the ID of the fields ( i.e the same as on jotform), but when I click submit, it doesn’t transfer over the data.

—

You can replicate this by going to http://opohills.com/taipei-rentals.php and entering information right under the slider

—

What what I write in PHP which would carry the information over?

Is this on my end, or on jotform’s?

The code for my custom form is —

    <form id="formElem" name="formElem" action="form.php" method="post" >

     <div class="icon">

      <select id="input_13" name="capacity" >

        <option value="1">1</option>

        <option value="2">2</option>

        <option value="3">3</option>

        <option value="4">4</option>

        <option value="5">5</option>

        <option value="more">6+</option>

      </select>

      <span><img src="img/man.png" /></span>

     </div>

     <div class="icon">

      <input id="txtFromDate" name="check_in" placeholder="mm/dd/yy" type="text" readonly="readonly" AUTOCOMPLETE=OFF />

      <span><img src="img/calendar.png" /></span>

     </div>

     <div class="icon">

      <input id="txtToDate" name="check_out"   placeholder="mm/dd/yy"  type="text" readonly="readonly" AUTOCOMPLETE=OFF />

      <span><img src="img/calendar.png" /></span>

     </div>

     <button id="btn_room_search" type="submit" class="secondary button submit_button">Inquire Now</button>



    </form>
  • 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-15T14:34:19+00:00Added an answer on June 15, 2026 at 2:34 pm

    If you’re saying you want your PHP form to submit this data to a remote host automatically then what you need is to generate another HTTP request to the remote host (basically proxying the data over to the remote host).

    However, if what you’re saying is that you want the form data populated on your page to be populated automatically on some other remote host’s page then there’s simply nothing PHP can do to help you with that. You will need access to the remote host and you’d have to make modifications to that code to accept remote requests that will automatically populate the page’s form elements.

    The proxy request can be as simple as this…

    $postdata = http_build_query($_POST); /* do your own validation here */
    
    $opts = array(
                  'http' => array(
                                 'method'  => "POST",
                                 'header'  => "Accept-language: en\r\n" .
                                              "Cookie: foo=bar\r\n", /* if necessary */
                                 'content' => $postdata
                                ),
                 );
    
    $context = stream_context_create($opts);
    
    $file = file_get_contents('http://www.example.com/', false, $context);
    

    And that basically just proxies what was sent to your PHP script to the remote host. See PHP HTTP Stream Context Options for more details.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to select an H1 element which is the second-child in its group
I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported

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.