Hello! I just want to start with saying that i hope i'm asking the question in the right part of the forum. Maybe it should have been in the PERL section or some other section? Feel free to move the thread if this is so.
To the Q:
I have a simple contact-form in my website that looks like this:
As you see, I'm using the mailscript "FormMail.p l" that is provided by my host.
I also use a mailinglist on my site. The mailinglist i use is called "Listmessen ger" and works well for me. The code i use to integrate listmessenger on the webpage looks like this:
What i would like to do is to put a "checkbox" on the first form that if checked would also subscribe people to the mailinglist (send the "name" and "e-mail" part of the first form to "listmessenger. php" with the appropiate information that is in the second form").
Something like this maybe:
I have to emphasize that i do not know alot of programing.
I know superbasic HTML/CSS and can do simple adjustments to already made PHP code, so if anybody sees a simple solution i would be really greatful.
Thanx for reading
/Daniel
To the Q:
I have a simple contact-form in my website that looks like this:
Code:
<FORM action=http://www.domain.com/cgi-bin/[I]FormMail.pl[/I] method=post><INPUT type=hidden value=info@domain.com name=recipient> <INPUT type=hidden value=kontakt@domain.com name=subject> <INPUT type=hidden value=http://www.domain.com/english/thanx.html name=redirect> Name <INPUT size=50 name=Name><BR> <P></P>E-mail <INPUT size=30 name=email><BR> <BR> <P>Message: <BR><TEXTAREA name=Meddelande rows=7 cols=50></TEXTAREA></P> </SELECT> <P></P> <P><INPUT type=submit value=Send! name=skicka> <INPUT type=reset value="Clear .." name=rensa></P></FORM>
As you see, I'm using the mailscript "FormMail.p l" that is provided by my host.
I also use a mailinglist on my site. The mailinglist i use is called "Listmessen ger" and works well for me. The code i use to integrate listmessenger on the webpage looks like this:
Code:
<form action="http://www.domain.com/listmessenger/public/listmessenger.php" method="post"> <input type="text" name="email_address" value="" maxlength="128"> <select name="action"> <option value="subscribe">Subscribe</option> <option value="unsubscribe">Unsuscribe</option> </select> <input type="hidden" name="group_ids[]" value="2" /> <input type="submit" value="Send" /> </form>
Something like this maybe:
Code:
<INPUT TYPE=CHECKBOX NAME="maillist">Yes! Put me on the list!<P>
I know superbasic HTML/CSS and can do simple adjustments to already made PHP code, so if anybody sees a simple solution i would be really greatful.
Thanx for reading
/Daniel
Comment