CGI-bin on a different server?

  peabody 23:18 17 Dec 04
Locked

I manage a website where the web-hosting service does not provide CGI-BIN (or any server-side scripting) support. The client requires a form to be set up which I had planned to process using the perl script FormMail which requires cgi-bin facility to run.
I, however, have my own web-hosting on a server with cgi-bin support.
Would it be possible to set the client's form up to use FormMail running on my server? Or must it be on the client's own server? Thanks for your help.

  Taran 23:47 17 Dec 04

Formmail has the capability to handle forms from other sites. You need to specify the relevant settings in the script configuration.

An alternative method is to run a form from your own site in an inline frame on the site without CGI support, which can effectively conceal the exact whereabouts of the form page and save you the bother of tweaking the Formmail script at all.

  Forum Editor 01:22 18 Dec 04

You can indeed use a remote script for your form, but you'll need to add the address to your form tag:-

<form action=http:// put your remote script address here method="post">


(Your other form fields go here. Include your submit buttons at the end.)
</form>

Some scripts use method=post and some use method=get so make sure you use the right attribute.

  peabody 10:38 18 Dec 04

That's great. I particularly like Taran's idea of the inline frame, but will go for whichever I can get to work. Thanks again.

This thread is now locked and can not be replied to.

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

1995-2015: How technology has changed the world in 20 years

Alex Chinneck’s giant ice cube Christmas tree at Kings Cross

Apple rumours & predictions 2017: The iPhone 8, new iPads, and everything else you should expect fr7…