Source language: Translate to:

Send POST froms from NB

Questions or information that don't quite fit anywhere else

Moderator: Neosoft Support

Send POST froms from NB

Postby Hapu » Tue Feb 25, 2003 3:53 pm

My english is poor... I hope you can understand me...
This is just a trick... I trying to send variables from neobook to a site for example to add an user in a data base... BUT... the length is too large for method GET... I need use POST.... but I search the Net and don't found anything to resolve the problem...

Then I use the tools included in neobook...
Create an BrowserWindows... can be hide...
and create the example form...
and a button wich action is create a simple temporary web page with the form with all the variables hidden... and a simple script in the body onload submit this form, and load in the web browser object this temporary file...
and work!!!!

Send button action:<font color='#008000'>
FileWrite "[PubDir]post.htm" "Append" "<html><body onload='document.forms.post.submit();'>"
FileWrite "[PubDir]post.htm" "Append" "<form name='post' action='http://mysite.com/engine.php' method='post'>"
FileWrite "[PubDir]post.htm" "Append" "<input type='hidden' name='field1' value='[form_var]'></form></html>"
BrowserGoTo "WebBrowser1" "[PubDir]post.htm"</font>

That's all!!!!
If you want see this working you can download the draft pub from http://hapu.ipdinamica.com/neobook/test.pub

I hope you enjoy it!
Bye bye... from Argentina



(Edited by Hapu at 6:20 am on Feb. 13, 2003)
Hapu
 

Send POST froms from NB

Postby nastone1 » Fri Jul 25, 2003 8:59 pm

the link doesn't work.
nastone1
 


Return to Misc. Questions and Information

Who is online

Users browsing this forum: No registered users and 1 guest