Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POST URL String for HTML Form POST Method

Status
Not open for further replies.

EchoAlertcom

IS-IT--Management
Oct 8, 2002
239
US
Hello,

I am using a component called ASPTear to help submit form data through an automated process.

Let me describe what I understand:

When using the GET Method. The Post Url string is appended in the address bar in the form of test.asp/?username=bob&password=12345

I also know that for the POST Method that the payload is not sent in the URL string.

I know how to manually format the Post URL String for the GET but can anyone tell me how to format this data manually so that it will work with the post. I know this is probably not enough info but please ask questions.

Sincerely,
Steve
 
You can put the data into hidden form fields...

<script>
function allDone(){
document.myForm.field3.value = 256 //whatever you need
document.myForm.action = &quot;text.asp&quot;
document.myForm.method = &quot;post&quot;
document.myForm.submit()
}
</script>

<form name=myForm>
<input name=field1>
<input name=field2>
<input type=hidden name=field3>
<input type=button onClick=&quot;allDone()&quot; value=&quot;Submit&quot;>
</form> -----------------------------------------------------------------
[pc] Be nice. It's only doing what you tell it to do.
mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top