phpquery - Automatically provide response to HTML form server-side using PHP -
i building app extracts data website , displays them in app. using phpquery extract data in server-side code.
however, 1 page contains .asp form 2 dropdown menus. need select option in both of them , parse resulting html. need server-side, javascript doesn't seem option.
how can so? can done using phpquery or other technology required?
the page in question is: http://www.bput.ac.in/exam_schedule_all.asp
since you're using php , phpquery, suggest try curl.
explore form submits via javascript , replicate via curl. format of posted (assumption) data, can replicate in curl request same endpoints. javascript won't necessary, , can same results need. in case, won't need item mentioned next.
alternatively, if have browser, such webkit, phantomjs, etc, can write automation script run steps , return results, depending on need returned. see more complete examples here: https://stackoverflow.com/a/17449757/573688 how others suggest this. note not necessary if need emulate post requests.
this non-coded answer because it's not entirely clear direction helps most.
Comments
Post a Comment