in reply to Re^6: CGI-mailer script
in thread CGI-mailer script

So make a form with hidden fields and fill them using javascript & submit using javascript.

Like this piece of JavaScript code:

document.forms['formname'].elements['fieldname'].value = someJavaScrip +tValue; document.forms['formname'].submit();

Joost.

Replies are listed 'Best First'.
Re^8: CGI-mailer script
by Anonymous Monk on Aug 19, 2004 at 12:01 UTC
    But how this conform with my JavaScript code I have already? http://www.perlmonks.com/index.pl?node_id=383723 Need my JavaScript code be completely altered? Once script author asserted that its a ready code, and its required only set perl mail script. Yes, I need still many learn.

      Yes you will have to alter the javascript as other people have described. I'm not sure how the author of the javascript can describe it as "ready code" without specifying the interface requirements to the backend CGI program, I would suggest that you go back to the author and tell him the FormMail program you are using and ask him to change the javascript to submit the data in the required way. Either that or hire a programmer to write the CGI backend for you - in which case you might go to http://jobs.perl.org and post the requirements and how much you are prepared to pay.

      /J\

        here is script author reply: "There are two scripts involved here. My client-side script which runs in a Web browser is listed on my Web page. It is complete. However, I don't have access to the server-side CGI script which does the actual emailing. The script belongs to someone else, I just used it." Maybe someone can recommend ready javascript? Could the FormMail itself be customized for my javascript?
Re^8: CGI-mailer script
by santander (Acolyte) on Aug 19, 2004 at 12:24 UTC
    But how conform this with my JavaScript code I have already? http://www.perlmonks.com/index.pl?node_id=383723 Need I alter this code completely? Once code author affirmed that script is ready code and I only need set cgi mailer. Yes, I need still many learn. But some ready sample is best way for me yet.