homepage Welcome to WebmasterWorld Guest from 54.166.173.147
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
How to load a HTML page full of hidden data in a script?
bellahf




msg:439271
 11:30 pm on Mar 8, 2006 (gmt 0)

I am wondering if there's any way I can write a script to be able to mimic a user clicking a Submit button on a web page? I understand I can do $ua->request(POST 'http://somewhere/foo.cgi', [name => 'me', gender => 'F']); to pass in the key/value pairs into a cgi script. But my problem is I have all these key/value pairs already stored in a HTML file and don't want to write a parser to get these key/value pairs to be used in my script. I want to find a way to load this HTML page full of hidden key/value data and add in the Submit button to be pushed to the cgi script which process the data.

Any suggestions? Thanks very much.
Bella

 

perl_diver




msg:439272
 8:21 am on Mar 9, 2006 (gmt 0)

I can't figure out what you are asking.

MichaelBluejay




msg:439273
 8:21 am on Mar 10, 2006 (gmt 0)

If you're talking about a page you own, you can use Javascript to Submit the form. If the form resides on a page you don't own, I don't think there's a way to Submit the form remotely from your own script.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved