Announcement List opt-in form

software development

#1

I just made our new site live, and it seems that the code for the announcement list opt-in form isn’t working in that once I enter a name and email address and click submit, I am not redirected to the web page URL that I put into the announcement list code. Here is the code below. You can see that I filled in some of the URL fields with custom pages.

Name:
E-mail:

Can someone help me determine what needs to change in this code? It looks to me like I did everything as the Wiki article (http://wiki.dreamhost.com/Announcement_Mailing_List) said.

Thanks in advance for any assistance!

Julie


#2

list shouldn’t be an e-mail address, just the part before the at sign – try it with just info. also domain should be just the domain not a url – try childrenofhopewdm.org.

track7 - my dream-hosted site


#3

<input type="hidden" name="url"value="http://childrenofhopewdm.org/thanks-for-subscribing/" /> There needs to be a space before “value”. Same goes for emailconfirmurl.


#4

Damn you have good eyes.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#5

Thanks to Misterhaan and Andrewf. I fixed the errors that you pointed out to me. Thanks so much. I’m still having the same problem, though.

Here’s what Dreamhost support has to say:

"This is because your code is not set up to handle the extra data that’s being passed by the browser. You’ll need to fix the code on your website to get this working as expected. Here’s an example of the extra data being passed by the browser:

http://childrenofhopewdm.org/thanks-for-subscribing/?address=mikes@dreamhost.com&name=test&code=3

You need to set up your website’s code to be able to accept that, which
it is not."

Any other thoughts? Thanks!

Julie


#6

I found something else that I think might be the key to this, but I can’t get it to work. It’s from the “How do I display information from the form on my custom URLs?” in the Wiki article (http://wiki.dreamhost.com/Announcement_Mailing_List)

I used the code example (in the article) on my ‘thanks for subscribing’ page. The site is in WordPress, so I’m not sure if its processing in PHP or not. Either way, it didn’t work. But this almost has to be part of the problem because of what’s returned in the browser bar after clicking submit. I get something like this:

http://childrenofhopewdm.org/thanks-for-subscribing/?address=mikes@dreamhost.com&name=test&code=3

I’m almost there, if anyone can help me crack this!

Thanks,

Julie


#7

[quote]I used the code example (in the article) on my ‘thanks for subscribing’ page. The site is in WordPress, so I’m not sure if its processing in PHP or not. Either way, it didn’t work. But this almost has to be part of the problem because of what’s returned in the browser bar after clicking submit. I get something like this:

http://childrenofhopewdm.org/thanks-for-subscribing/?address=mikes@dreamhost.com&name=test&code=3

I’m almost there, if anyone can help me crack this![/quote]
Your site doesn’t like the name parameter (“name=test”) part of the query string. So unless you are into PHP programming and willing to hack your Wordpress install, you are probably better off developing mod_rewrite directives to work around the issue (eg, issue a redirect without a query string, or setup a different script that redirects)

Customer since 2000 :cool: openvein.org