Jump to content
topten

AUCGI: How to get contents from input?

Recommended Posts

topten

I discovered aucgi - which allows to use au3 on the server side.

I wonder how can I pass the contents of html input and pass it to aucgi?

<form>
  First name:<br>
  <input type="text" name="firstname">
  <br>
  Last name:<br>
  <input type="text" name="lastname">
</form>
 
Great thanx in advance!

Share this post


Link to post
Share on other sites
trancexx

Isn't that done automatically?

If your server runs AuCGI then depending if the form's enctype method is "get" or "post" you would use _Get() or _Post() respectively to read passed data. Or use variables $_GET_raw and $_POST_raw to read raw data.

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
topten

Trancexx

I am using AuCGI on LightTPD.

Say on one page I create a form something like

<form action="action_page.au3"> ; What should I use here? action_page.au3?
  First name:<br>
  <input type="text" name="firstname" value="Mickey">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Mouse">
  <br><br>
  <input type="submit" value="Submit">
</form>

Should I use action_page.au3 for the form?

How can au3 page then get the "firstname" the "lastname"  _Get() or _Post()  ?

Great thanx in advance!

Share this post


Link to post
Share on other sites
trancexx

Default method for forms is "GET", so for form written like that you would use _Get("firstname") and _Get("lastname") in action_page.au3.

Did you try it?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
topten

Yes, I got it. Thank you very much , Trancexx

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×