• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Sending the form automatically to be processed by a server

Dear All:
I have to implement a monthly anniversary billing system.

Is there a way send the form automatically to be processed by some another server. I want to implement a perl program that runs everyday. I have to interact with a credit card server for it to work.  

A form based solution is easy but is there a way to send the form to server automatically without someone clicking the submit button.

Is this achieveable. Please let me know.

Thanks and Regards

2 Solutions
I belive there is a javascript that does it,

Online banking site use it, why not make the java scrip like a timer and when it gets to a certian number it logs them out Java script below:

<script language="JavaScript">

// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var timerID = 0;
var tStart  = null;

function UpdateTimer() {
   if(timerID) {
      clockID  = 0;

      tStart   = new Date();

   var   tDate = new Date();
   var   tDiff = tDate.getTime() - tStart.getTime();


   document.theTimer.theTime.value = ""
                                   + tDate.getMinutes() + ":"
                                   + tDate.getSeconds();
   timerID = setTimeout("UpdateTimer()", 1000);

   if(timerID >= 10)
     alert('Time is now');


function Start() {
   tStart   = new Date();

   document.theTimer.theTime.value = "00:00";

   timerID  = setTimeout("UpdateTimer()", 1000);


function Stop() {
   if(timerID) {
      timerID  = 0;

   tStart = null;

function Reset() {
   tStart = null;

   document.theTimer.theTime.value = "00:00";


<body onload="Reset()" onunload="Stop()">
<center><form name="theTimer"><table>
      <td colspan=3 align=center>
         <input type=text name="theTime" size=5>
         <input type=button name="start" value="Start" onclick="Start()">
         <input type=button name="stop" value="Stop" onclick="Stop()">
         <input type=button name="reset" value="Reset" onclick="Reset()">

hope this helps
JavaScript to do real world jobs, is this a joke xDamox ;-)

perl has been suggested, do it like

use LWP::Simple;
while (1) {
    print F get("http://www.somewhere.tld/script?parameters");
    close F;
    sleep 84600;
# to be improved in many ways
(if supported on the server / by hostingservice...) you can schedule Perl-scripts for example with CRON. So you could schedule the above script (without the sleep-line) to run every thursday-evening at 10.00 pm for example.

Read all about it here:
The usual Perl way of doing this is using the LWP bundle, eg:

use LWP::UserAgent;
$ua = LWP::UserAgent->new;  
my $req = HTTP::Request->new(POST => 'http://www.perl.com/cgi-bin/BugGlimpse');
my $res = $ua->request($req);
 print $res->as_string;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now