doc1355 Posted October 13, 2010 Share Posted October 13, 2010 There is a web page that is programmed in ASP and has a simple one field form (drop down list) and a submit button. After you submit the form by selecting an option (over 150 options), it will take you to the result page using the "Post" method. The variable does not show in the result page URL. The result page has table with multiple columns. What I want is to have ALL the results in one CSV file. Here what I really need in details: 1- Import all tables (one table for each option in the drop-down list) into a CSV file. 2- The content of two columns has codes. Replace all the codes in the table to a separate column. 3- Create an additional column that contains the name of the option on the first page form. I need to have it in a php file so that I can run it via cron job few times a year. How can I obtain this functionality with PHP? Quote Link to comment https://forums.phpfreaks.com/topic/215791-extract-data-from-a-web-form/ Share on other sites More sharing options...
premiso Posted October 13, 2010 Share Posted October 13, 2010 You will want to look into curl which will help you fetch the data and then to parse it I would look into the DOM. Quote Link to comment https://forums.phpfreaks.com/topic/215791-extract-data-from-a-web-form/#findComment-1121829 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.