orange Posted July 11, 2006 Share Posted July 11, 2006 I am writing a program for a collegue, and basically I need to automate submission of a PHP form on a website that I do not moderate. So, is there an easy way to automate PHP form submission? I have goofed around with IE.au3 but I can't really get the _IEformoption() function to work. Also, can this be done in the background? Link to comment Share on other sites More sharing options...
evilertoaster Posted July 11, 2006 Share Posted July 11, 2006 This should be possible with Ie.au3 as far as i know. I would try posting what you have in the ie.au3 thread. Link to comment Share on other sites More sharing options...
ConsultingJoe Posted July 11, 2006 Share Posted July 11, 2006 I am writing a program for a collegue, and basically I need to automate submission of a PHP form on a website that I do not moderate.So, is there an easy way to automate PHP form submission? I have goofed around with IE.au3 but I can't really get the _IEformoption() function to work.Also, can this be done in the background?Yes, IE.au3 is the way to go unless you can submit the data via url such as http://phpscript.php?data=dataherecan you tell us the url or give us an example of the php [center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center] Link to comment Share on other sites More sharing options...
ivan Posted July 12, 2006 Share Posted July 12, 2006 To interact with form elements, you'll need the form collection object variable in the document. Taken straight out of the help file: #include <IE.au3> _IEFormGetCollection ( ByRef $o_object [, $i_index = -1] ) should return the form collection, you then might want to start checking shich items need filling and to submit, use _IEFormSubmit ( ByRef $o_object [, $f_wait = 1] ) IVAN Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Link to comment Share on other sites More sharing options...
DaleHohm Posted July 12, 2006 Share Posted July 12, 2006 I am writing a program for a collegue, and basically I need to automate submission of a PHP form on a website that I do not moderate.So, is there an easy way to automate PHP form submission? I have goofed around with IE.au3 but I can't really get the _IEformoption() function to work.Also, can this be done in the background?Yes, this can all be done. There are examples in the helpfile demonstrating such.It will be best for you to post some code that you've tried and what trouble you're having with it.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now