Hello,
I had setup a website for the NGO I am working with using drupal 6.4, I just did'nt get how to set up form...

I need to make a donation page (similar to this one: http://www.emdh.org/don/donspart.html ) with drupal.
I basicly need few text field to be fill and a submit button calling a cgi script.
I really can't figure out how to do this.

I think it is a basic misunderstanding of drupal or module from me and any help would be very appreciate!

Thanks in advance,
Jeremie

Comments

jclaussen’s picture

At the following module to see if it meets your needs.

http://drupal.org/project/webform

dudesque’s picture

Hi,
thxs for replying
I misunderstood few things with webform, is there a way to have our form post to a cgi script instead of sending email...

my needs are very basic:

here is the html form hard coded:

<form name="formdon" action="" method="post">
<input name="Montant" id="DON" class="input" maxlength="32" value="" size="8" onblur="GestionMontant(this.value);resetChoixDon();" type="text">
<input type="button" onclick="javascript:Valider2();" value="Valider le paiement"></form>

with the following js script:
function Valider2()
{
var path  = document.formdon;
path.action = "traitementFormulaireDon.php";
path.submit();
}

and in traitementFormulaireDon.php I fill a sql db and I call the cgi script this way:
<html><head></head><body>
<FORM ACTION = "/cgi-bin/modulev2.cgi" METHOD = "post" name="paiement"> 
<INPUT TYPE = hidden NAME = PBX_MODE VALUE = "*">
<INPUT TYPE = hidden NAME = PBX_SITE VALUE = "*******"> 
<INPUT TYPE = hidden NAME = PBX_RANG VALUE = "****"> 
<INPUT TYPE = hidden NAME = PBX_IDENTIFIANT VALUE = "********"> 
<INPUT TYPE = hidden NAME = PBX_TOTAL VALUE = "<? echo $montant; ?>"> 
<INPUT TYPE = hidden NAME = PBX_DEVISE VALUE = "**********"> 
<INPUT TYPE = hidden NAME = PBX_CMD VALUE = "<? echo $ref; ?>"> 
<INPUT TYPE = hidden NAME = PBX_PORTEUR VALUE = "<? echo $_POST['mail']; ?>"> 
<INPUT TYPE = hidden NAME = PBX_RETOUR VALUE = "montant:M;maref:R;auto:A;trans:T;;erreur:E;sign:K"> 
<script>
 document.paiement.submit();
</script>
</FORM> 
</body></html>

I really would like to have it into drupal instead of hard coded html/hs/php/MySQL

thanks for your help,
Jeremie