Jump to content

hide the action URL from html form


phppaper

Recommended Posts

I don't think so. The action attribute tells the BROWSER where to send the data. Without it, the browser would not know where to submit the form. If you leave the action field blank, the browser will submit to the same page as it is already on.

 

You could try to hide it using javascript to submit the form, but then the url would be openly visible in the javascript code; plus some users might have javascript off.

 

The only suggestion I can offer is to submit it to a script that somehow forwards the submission to a different page, perhaps with an additional "secret" value (to prevent people from directly accessing the page). Of course, that page's address will be visible in the browser, unless you post the data using curl and send the user somewhere else.

 

What are you hoping to accomplish and why? We might be able to offer alternatives if we know this.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.