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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:26:43+00:00 2026-05-21T07:26:43+00:00

<form action=/path/hello.php name=’myForm’ method=’post’> <!– onChange=ajaxFunction(); –> <input type= text name=user id= txtname /><br

  • 0
<form action="/path/hello.php" name='myForm' method='post'>
<!--  onChange="ajaxFunction();"  -->
<input type= "text"  name="user" id= "txtname" /><br />
<!-- <input type="text" name="user2" id="txtname2" /> -->
<input type='submit' name = "click"  />
</form>

Noweveryone who looks at my html source code will know where this php file is located and will know how to call it. How can i stop this ?

  • 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-21T07:26:44+00:00Added an answer on May 21, 2026 at 7:26 am

    If you handle the POST request to /path/hello.php properly, it shouldn’t matter whether someone accesses it manually. Just make sure you are checking for things like the existence of $_POST['click'] and any other POST data you expect to exist, clean it, and proceed as normal.

    If someone were to call /path/hello.php with spoofed POST data, then how would that be any different than them submitting your own form? There’s no need to modify the script’s visibility.

    Furthermore, if your fear is that someone would be able to view the source of your PHP scripts–don’t. The only thing a user would be able to see if they made an HTTP request to your PHP script would be the rendered HTML.

    However, even if they could–why wouldn’t you want someone to see your source (of course, barring situations where you might have sensitive configuration data within a PHP file)

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

Sidebar

Related Questions

<form action = settings.php method = post> Student ID*: <input type = text name
How to use relative path in form action <form action=/myapp/alterPassword id=changepassword method=post autocomplete=off onsubmit=return
I have this code on javascript, var path = 'remote site action.php'; var form
i.e. - <form action=http://192.168.1.20/form_action.asp method=get> vs. ( without a specific handler, still valid html?
I'm trying to post form data in a lightbox through jQuery and php. There
I have this form <table class=table> <div class=error><?php if(!empty($errors))echo output_errors($errors);?></div> <form action = upload_music.php
I have the below action mappings in the struts-config.xml file. <action path=/getTareWeight type=com.astrazeneca.usbod.scale.actions.GetTareByBarcodeAction name
it it possible to get the form action of a GET form on submit
I am having problem with overriding Form Action URL I have a class to
I have a jsp with a submit based on the html:form action. <html:form action=/nextPath>

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.