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

  • Home
  • SEARCH
  • 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 8615609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:25:13+00:00 2026-06-12T05:25:13+00:00

A search form in search.php is on the vendor’s server and it has been

  • 0

A search form in “search.php” is on the vendor’s server and it has been set up so my site can display it. The URL is: http://mysite.com/search.php.

The search result page is on the vendor’s server also in a separate file called “result.php”. It has also been configured so the URL looks like this: http://mysite.com/result.php.

I would like to insert the “search.php” form in the “result.php” file so users don’t have to swtich back and forth between the pages.

I tried:

 <?php
 include 'http://mysite.com/search.php';
 ?>   

It didn’t work, and then I realized that I need to set “allow_url_fopen” to yes to use URL in the include statement. This is NOT something I want to do as I read other posts here there is security issue involved.

  • 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-12T05:25:15+00:00Added an answer on June 12, 2026 at 5:25 am

    I’m not sure you can include another server’s php file, allow_url_fopen and allow_url_include are to get the file output of the designated url, i mean, the final result, you won’t be able to use the variables or functions from that script.

    try using file_get_contents(), or if you are displaying final results anyway, you could just use an iFrame

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

Sidebar

Related Questions

I've a search form wherein the database query has been coded in php and
I have a search form on my site that submits the url in the
I am looking best solution in PHP for a search form which has multiple
I have a small issue on a search form. PLease check this: http://www.fortisfitness.ca/test/script.php What's
I have created a search form and search.php file to display the result. The
I have a search form on my site <form class=clearfix action=search.php method=get> <h1>Search the
How can I achieve the URL pattern when the form is submitted index.php <form
I have a simple search form (site/search.php) to send search string to controller and
(Using MySQL and PHP) I have a search form that will allow my users
This is my form: <form id=submitsearch action=Classes/system/main/searchresult.php method=POST> Search by <span style=font-size:15px;>(developer, specialization, profession,major)</span>

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.