subscribe from external form

Questions about Version 3 phpList features (the answer is probably 'Yes!')
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation.

subscribe from external form

Postby jimlongo » 5:35pm, Tue 10 Jun, 2014

Hi, I'm trying to make a Wordpress widget using Gravity Forms so that people can subscribe to my list.

I have a form that submits an array to
http://xyz.com/list/?p=subscribe&id=1

the array has information like this . . .
Code: Select all
      'email'    => 'email@somewhere.com',
      'list[5]'    => 'signup',
      'list[6]'    => 'signup',
      'list[2]'    => 'signup',
      'list[3]'    => 'signup',
      'list[9]'    => 'signup',
      'htmlemail'=> 0,


Not working, is that the right URL to use?
Anything I'm missing here?

Thanks.
jimlongo
PL Geek
 
Posts: 88
Joined: 10:10pm, Tue 15 May, 2007

Re: subscribe from external form

Postby jimlongo » 2:58pm, Wed 11 Jun, 2014

updated the array to
Code: Select all

'p'            => 'subscribe'
'id'           => 1
'email'        => 'email@somewhere.com',
'emailconfirm' => 'email@somewhere.com',
'list[5]'      => 'signup',
'list[6]'      => 'signup',
'list[2]'      => 'signup',
'list[3]'      => 'signup',
'list[9]'      => 'signup',
'htmlemail'    => 0


submitting to http://xyz.com/list/

But still no luck.
jimlongo
PL Geek
 
Posts: 88
Joined: 10:10pm, Tue 15 May, 2007

Re: subscribe from external form

Postby duncanc » 9:22am, Fri 13 Jun, 2014

It's not clear quite what you are doing. Is this php code that runs as part of wordpress when someone submits the form?

Broadly, that code needs to submit the same data as the real subscription form at http://xyz.com/list/?p=subscribe&id=1
Use firefox web console or similar to capture and examine the POST that is made by the real form.

I don't know what Gravity forms does, but there are some Wordpress plugins that provide subscription widgets for phplist.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: subscribe from external form

Postby jimlongo » 4:28pm, Fri 13 Jun, 2014

Gravity forms is a premium wordpress extension which enables building all kinds of forms. I use it for many purposes - registrations, contacts, etc., and was attempting to use it for this purpose. I was mimicking the same post data that PHPList sends, but couldn't get it working.

I did look at other Wordpress plugins but couldn't find any that seemed very current (WP PHPList hasn't been updated in over 2 years) except one generic plugin which according to its support forum is not easy to configure with PHPList.

I read another article (which is the first approach I took, just needed to add the javascript validation separately) and tried it again. Basically just extract the form from the subscribe page and use that. That works.

Question: When submitted this form redirects with a thank you message. How can I just display the message in place without the page redirecting to http://xyz.com/list/?p=subscribe&id=1 with the thank you message.
jimlongo
PL Geek
 
Posts: 88
Joined: 10:10pm, Tue 15 May, 2007

Re: subscribe from external form

Postby duncanc » 10:17am, Sun 15 Jun, 2014

See this topic for a couple of Wordpress plugins that work with phplist
http://forums.phplist.com/viewtopic.php?f=7&t=41192.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London


Return to Does phpList do this?

Who is online

Users browsing this forum: No registered users and 1 guest

cron