Date:  01/20/2003 05:55:22 PM Msg ID:  001264
From:  Michael Pena Thread:  001257
Subject:  Re: Use \"GET\" or \"POST\" without buttons?
Thanks for this info, my second question is that:
What if you don't have a Form?  nor an input box?  Can you still submit just using the values from variables?  From the samples below you have used an input box.  Thanks again!
 
-Mike-
 
Sent by FoxWeb Support on 01/20/2003 04:36:43 PM:
The GET method uses the query string portion of the URL:
 
http://ServerName/show_cgi.fwx?first=Mike&Last=Pena
 
The above URL is what will be sent anyway if you create a form which uses the GET method and contains two fields, first and last:
 
<form action="show_cgi.fwx" method="GET">
<input type="text" name="first"><input type="text" name="last"><br>
<input type="submit" value="Submit">
</form>
 
Sending POST data from a link requires javascript code:
 
<form action="http://localhost/show_cgi.fwx" method="POST" name="myform">
<input type="hidden" name="first" value="Mike">
<input type="hidden" name="last" value="Pena">
</form>
<a href="#" onclick="document.myform.submit()">Submit</a>

In the above example, note how the desired values are set in hidden form fields.  The link simply causes the browser to submit the form.

FoxWeb Support Team
support@foxweb.com email

Sent by Michael Pena on 01/20/2003 02:05:36 AM:
Is it possible to submit data using GET or POST without using the Form or Submit button.   Or is it possible to use a Text Link to Submit data?
 
-Mike-