[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4761: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
phplist forums • View topic - [how to] put a subscribe form on one of my website pages

[how to] put a subscribe form on one of my website pages

Solutions for other phpList version 2 users
Forum rules
Please do not ask questions here, this is for Solutions you have discovered or come across.

Re: [how to] put a subscribe form on one of my website pages

Postby YogaWithBryce » 11:57am, Wed 17 Nov, 2010

YogaWithBryce
phpList newbie
 
Posts: 1
Joined: 11:47am, Wed 17 Nov, 2010

Re: [how to] put a subscribe form on one of my website pages

Postby honzavag » 9:54am, Tue 08 Feb, 2011

Hello, this code works well. But I would like to add another input fields to send another post data. When I add another field to form like this:
<div class="email_phplist">Your Friend's Email:</div>
<div><input class="phplist" name="email_1" size="15" type="text" /></div>

the page is redirected to home page.

All code I have in form:

<form action="http://www.xxx.com/lists/?p=subscribe&id=4" method="post">
<div class="email_phplist">Your Email:</div>
<div><input class="phplist" name="email" size="15" type="text" /></div>
<script type="text/javascript">// <![CDATA[
addFieldToCheck("email","Email Address");
// ]]></script>
<br />
<div class="email_phplist">Your Friend's Email:</div>
<div><input class="phplist" name="email_1" size="15" type="text" /></div>

<input name="list[2]" type="hidden" value="signup" /> <input class="submit_phplist" onclick="return checkform();" name="subscribe" type="submit" value="Get For Free Immediately" />
</form>

Does anybody have any idea how to do it? The added fields should only send POST data to index.php. There is added mail function to send email.
Jan
honzavag
phpLister
 
Posts: 8
Joined: 6:45pm, Sun 09 Jan, 2011

Re: [how to] put a subscribe form on one of my website pages

Postby H2B2 » 11:22am, Wed 02 Mar, 2011

phpList | | | |
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Re: [how to] put a subscribe form on one of my website pages

Postby checkmate » 9:51am, Wed 27 Apr, 2011

checkmate
phpList newbie
 
Posts: 4
Joined: 5:04pm, Tue 22 Dec, 2009

Re: [how to] put a subscribe form on one of my website pages

Postby codediddler » 5:37pm, Fri 29 Apr, 2011

PHPHosted

I cannot avoid going to my subscribe page. I have faithfully tweaked all the form information I have, but no matter what browser I'm in, I end up at the subscriber page. The email confirmation gets sent, though.

My guess is that my problem is the way the hosted subscriber page is configured.
codediddler
phpList newbie
 
Posts: 1
Joined: 5:32pm, Fri 29 Apr, 2011

Re: [how to] put a subscribe form on one of my website pages

Postby H2B2 » 1:41am, Wed 11 May, 2011

phpList | | | |
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Re: [how to] put a subscribe form on one of my website pages

Postby borsodas » 4:58am, Sun 17 Jul, 2011

try using ajax



<script type="text/javascript">
$(document).ready ( function () {
$('#go').click ( function () {
$.ajax ( {
type: 'POST',
data: $('#newsletter').serialize (),
url: $('#newsletter').attr ('action'),
success: function () {
$('#thankYou').show (
1000,
function () {
setTimeout ( function() { $('#thankYou').hide(1000); }, 3000);
}
);
}
} );
return false;
} );
} )

</script>
borsodas
phpLister
 
Posts: 8
Joined: 3:39pm, Sat 23 Apr, 2011

Re: [how to] put a subscribe form on one of my website pages

Postby erindepew » 3:00am, Tue 19 Jul, 2011

I'm having a very silly issue... I can get the subscribe form working fine through phplist, and then as soon as I copy all of the code into the div on my own website, using their instructions here http://docs.phplist.com/CustomSubscribeForm, it doesn't work. It shows up fine but people aren't able to subscribe through my page which is www.marbleheadcliffs.com/subscribe.html but they are able to subscribe through http://www.marbleheadcliffs.com/mailinglist/.
Is there something I need to turn on or off to get this to work?

Thanks
erindepew
phpList newbie
 
Posts: 1
Joined: 2:40am, Tue 19 Jul, 2011

Re: [how to] put a subscribe form on one of my website pages

Postby Zesty » 5:19am, Sun 21 Aug, 2011

THX H2B2 !! :D :D
Zesty
phpList newbie
 
Posts: 3
Joined: 4:56am, Sun 21 Aug, 2011

Image as submit button: FIXED

Postby Spyce » 8:57pm, Fri 21 Oct, 2011

Spyce
phpList newbie
 
Posts: 3
Joined: 7:39pm, Fri 21 Oct, 2011

Re: [how to] put a subscribe form on one of my website pages

Postby filipoka » 1:22pm, Thu 19 Apr, 2012

filipoka
phpLister
 
Posts: 14
Joined: 10:33am, Thu 19 Apr, 2012

Re: [how to] put a subscribe form on one of my website pages

Postby vpbx » 1:02am, Thu 03 May, 2012

Hi fellow php listers.

I have the subscribe feature working well on my CSS formatted site. The issue i have is that after the submission is preformed i am defaulted to the thank you page in the default phplist template.

I have a default page of my own but how do i change the code to call that page and not the default phplist one..

Any help would be great.
vpbx
phpList newbie
 
Posts: 1
Joined: 12:53am, Thu 03 May, 2012

Re: [how to] put a subscribe form on one of my website pages

Postby RBlack912 » 2:33pm, Fri 04 May, 2012

OK, I'm following along here and I've done all this but when I click submit it still takes me to the signup form page... How do I make it bypass the signup page and automatically sign them up and start sending out the confirmation emails... Why would I have them submit two forms?

http://www.ryanslinks.com
RBlack912
phpLister
 
Posts: 10
Joined: 8:33pm, Tue 17 Apr, 2012

Re: [how to] put a subscribe form on one of my website pages

Postby boriss » 12:26pm, Wed 01 Aug, 2012

Thank you very much, H2B2! Worked at first try! :wink:
boriss
phpList newbie
 
Posts: 3
Joined: 11:11pm, Tue 31 Jul, 2012

Re: [how to] put a subscribe form on one of my website pages

Postby zotek » 8:11am, Mon 11 Mar, 2013

zotek
PL Nut
 
Posts: 17
Joined: 7:30am, Mon 11 Mar, 2013

PreviousNext

Return to Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest