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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:15:58+00:00 2026-05-28T07:15:58+00:00

My form action is set to a php file like this: <form name=addstudent action=includes/data.php?act=enquiry

  • 0

My form action is set to a php file like this:

<form name="addstudent" action="includes/data.php?act=enquiry" >
    <input type="text" name="studentname" class="univtext default" value="Name" />
    <input type="text" name="studentemail" class="univtext default" value="Email" />
    <input type="text" name="studentno" class="univtext default" value="Contact No." />
    <input type="hidden" name="active" value="enquiry" />
    <input type="submit" value="Apply" class="univbut" >
</form>

and my php file data.php is:

<?php
    switch($_GET['act'])
    {
        case "enquiry":
        include_once('globalvariables.php');
    $dataUrl='http://localhost:8080/databasee/track?country='.SITE_ACCESS_COUNTRY.'&region=delhi';
    $json=file_get_contents($dataUrl);
    echo $dataUrl;
    echo($json);
    }
?>

My dataurl is formed correctly but file_get_contents() function is not getting the value from the url (this url returns json true or false) in other cases it working fine, it’s just here I am not able to get it working.

I found that &region parameter in my url converts to ®ion.

  • 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-05-28T07:15:59+00:00Added an answer on May 28, 2026 at 7:15 am

    Try:

    
    $url = "http://localhost:8080/databasee/track?country=";
    $param = rawurlencode(SITE_ACCESS_COUNTRY);
    $contents = file_get_contents($url.$param);
    echo $contents;
    
    

    See: If you’re opening a URI with special characters, such as spaces, you need to encode the URI with urlencode().
    Hope it helps

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

Sidebar

Related Questions

I have a form with action set to a php-file (verify.php). In the form,
So I use code like: <form action=file.php method=post target=foo onSubmit=window.open('', 'foo', 'width=450,height=300,status=yes,resizable=yes,scrollbars=yes')> But it
i have form action file in another directory but some file send to this
is it better to do this (regarding performance, not readability...): $('a.updateCartButton').click(function() { $('form[name=updateCartForm]').attr('action', $(this).attr('href')
I have this page called up.php that adds 1 to a txt file set
I currently have a form set up that passes some data to a php
I came to see that form file input field value cannot be set with
I have followed three tutorials, one on submitting form data to a php file,
I have a form action that needs to have its value set from a
Given some typical search form, I can't construct this form action when submitting a

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.