Also, I've noticed another that there's javascript involved in this mess:<input type="radio" name="KompressorVote" value="220"> <input type="radio" name="KompressorVote" value="221"> <form action="results.cfm" method="post" name="KompressorPollsForm" id +="KompressorPollsForm"><input type="hidden" name="kact" value="">
So, what I'm trying to do is to POST the value "220" into results.cfm, so that it gets registered, with no success though, all I get is the same webpage where I'm supposed to select an option. This is the code I've been using:<a href="javascript:applyVotes()"><img src="el/submit_button.gif" alt= +"Accept" border="0"></a> <script language="JavaScript"> function applyVotes() { window.open ("","ApplyVote","width=400,height=300,toolbar=no,locat +ion=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhisto +ry=no"); document.KompressorPollsForm.target = "ApplyVote" document.KompressorPollsForm.action = "results.cfm" document.KompressorPollsForm.kact.value = "applyVote" document.KompressorPollsForm.submit(); } function showLastPoll() { window.open ("","ApplyVote","width=400,height=300,toolbar=no,locat +ion=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhisto +ry=no"); document.KompressorPollsForm.target = "ApplyVote" document.KompressorPollsForm.action = "results.cfm" document.KompressorPollsForm.kact.value = "showLastPoll" document.KompressorPollsForm.submit(); } </script>
I'm confused right now, afaik this should work.. Any ideas guys?.. Thanks a lot in advance :)#!/usr/bin/perl use HTTP::Request::Common qw(POST); use LWP::UserAgent; $var1="220"; $button="kact"; $ua=LWP::UserAgent->new(); my $req= POST 'http://somesite.com/results.cfm', [var1=> $var1,button= +>$button]; $content=$ua->request($req)->as_string; print $content; print $req;
In reply to Form post with Coldfusion by pisteador
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |