Hej acoon!
Den første form ser således ud:
<FORM method="Post" ACTION="/cgi-bin/pro_scripts/lead.cgi">
<INPUT TYPE="HIDDEN" NAME="sponsor" size=20 value="__MEMBER_ID__">
<INPUT NAME="firstname" value="" size=20>
<INPUT NAME="lastname" value="" size=20>
<INPUT NAME="email" value="" size=35>
<input name="Join" type="submit" id="Join" value="Submit information">
</FORM>
Denne form kalder så mit script lead.cgi som kan ses herunder:
##############################################################
use strict;
use lib '/var/www/cgi-bin/.mgcfg/lib';
use MLMP;
&MLHTM::HTML_Header("$MLMP::MLMWEB_NAME Request Received");
#
# Her er en masse rutiner der undersøger om det indtastede er gyldigt
#
&MLMP::InsertLead(\%in);
#
# Generate the notification e-mails
#
my %sponsor_fields=&MLMP::LoadMember($in{'parent'});
my %info=();
my %subs=();
# Notify sponsor
$info{'to'}="$sponsor_fields{'firstname'} $sponsor_fields{'lastname'}";
$info{'to_email'}=$sponsor_fields{'email'};
$info{'from'} ="$MLMP::MLMWEB_NAME";
$info{'from_email'}=$MLMP::admin_email;
$info{'reply_to'}=$in{'email'};
$info{'message_file'}="lead_lsn_notify.msg";
$info{'subject'}="New $MLMP::MLMWEB_NAME Lead";
$info{'delivery'}='immediate';
$subs{'SPONSOR_FIRST_NAME'} = $sponsor_fields{'firstname'};
$subs{'SPONSOR_LAST_NAME'} = $sponsor_fields{'lastname'};
$subs{'SPONSOR_NAME'} = "$sponsor_fields{'firstname'} $sponsor_fields{'lastname'}";
$subs{'SPONSOR_EMAIL'} = $sponsor_fields{'email'};
$subs{'MEMBER_FIRST_NAME'} = $in{'firstname'};
$subs{'MEMBER_LAST_NAME'} = $in{'lastname'};
$subs{'MEMBER_NAME'} = "$in{'firstname'} $in{'lastname'}";
$subs{'MEMBER_EMAIL'} = $in{'email'};
$subs{'MLM_NAME'}=$MLMP::MLMWEB_NAME;
$subs{'ADMIN_EMAIL'}=$MLMP::admin_email;
&MgMail::SendMail(\%info,\%subs);
# Send welcome message to member
delete $info{'reply_to'};
$info{'to'}="$in{'firstname'} $in{'lastname'}";
$info{'to_email'}=$in{'email'};
$info{'from'}="$sponsor_fields{'firstname'}";
$info{'from_email'}=$sponsor_fields{'email'};
$info{'message_file'}="lead_lsn.msg";
$info{'subject'}="$MLMP::MLMWEB_NAME - Your Information";
$info{'delivery'}='immediate';
$subs{'SPONSOR_ID'}=$in{'sponsor'};
&MgMail::SendMail( \%info, \%subs );
&MLHTM::HTML_Section( "Thank You",
"Your requested information is on it\'s way\n");
&MLMP::CloseMemberDB;
###################################################################
Det jeg på en eller anden måde gerne vil, er at få den første form (eller mit script) til også at udføre denne form herunder:
<form name="proautoresponder" method="post" action="
http://www.ProAutoResponder.com/autosubscribe.htm"><input type="hidden" name="campaign" value="tlc">
<input type="hidden" name="account" value="nickmartin">
<input type="text" name="firstname" size="16">
<input type="text" name="email" size="20">
<input type="submit" name="Submit22" value="Send Info!">
</form>
Ved godt det er noget rodet, men kan ikke rigtig dreje det??
Jeg kunne selvfølgelig også bare få mit første script til at åbne et nyt vindue med nummer 2 form i, så skal brugeren bare trykke 2 gange....
Håber det giver bedre forklaring det her ?