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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:53:21+00:00 2026-06-04T09:53:21+00:00

I am really new to php, and this is what I am trying to

  • 0

I am really new to php, and this is what I am trying to do.

I have a form:

<form method="post" action="something.com/get.php">

<tr height="5">
<td valign="top" style='font-family:verdana;font-size:8pt;'><br/>
<br/>Number: <br/>
<input type="text" name="number" size="20" maxlength="100" />
<input type="submit" name="submit"/> 

</form> 

Now the get.php is located on some other sever

After sending the post data I get something like this on “get.php”

 <table border="1" cellpadding="2" cellspacing="2" width="400">

<tr>
        <td>33721</td>
</tr>

Now my question and problem is I don’t want to reveal the location of get.php.

So since I am new to php or any type of web programing, I am not sure how to do this.

What I had in mind was if I could make a php file which will get the post data from.

My form then pass it to the main page and then extract the contains from main page.

And display it to the user, I tried bunch of stuff like header and curl.

But non really worked probably because I am new, now I can’t make any changes to the main page which is “get.php”, so I have to find a another solution.

  • 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-04T09:53:23+00:00Added an answer on June 4, 2026 at 9:53 am

    I would suggest that you need to use Apache’s mod_rewrite to rewrite the url to something else.

    So you could then hide the location of the script by having the url your form submits to as something like:

    something.com/get

    which could then be rewritten by mod_rewrite, something like this:

    RewriteRule ^/get$ /path-to-script/get.php

    This way you can put the script anywhere. You could then deny access to the script via the url. So if someone tries to access get.php directly they will get a forbidden error message from apache.

    So altogether in your vhost you would have something like the following:

    RewriteEngine On

    RewriteRule ^/get$ /path-to-script/get.php [L]

    RewriteRule ^/path-to-script/get.php – [F,NS]

    What this effectively does is say rewrite url’s of the form ‘/get’ to /path-to-script/get.php and if someone tries to access /path-to-script/get.php directly (through the address bar), forbid it.

    This way you can put get.php somewhere that is not obvious and also stop people from accessing it.

    I realise this may be quite complicated if as you say you are new, but it something you may want to look into.

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

Sidebar

Related Questions

This is probably something really simple, however I am quite new to PHP, and
Rather new to php, so sorry if this seems stupid. I'm really copying a
This sounds like a really simple question, but I am new to PHP. If
I have been trying to solve this problem for three days now, it's really
Really stumped on this one. I have the following PHP file with a variable
im very new at javascipt (im php developer) so im really confused trying to
I'm really new at this mod_rewrite stuff and I'm trying to clean up the
I really was trying to avoid asking this question. I have seen quite a
I'm new to Doctrine 2 (and exceptions in PHP, really), but am trying to
I'm fairly new to PHP and MongoDB so it would be really helpful if

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.