homepage Welcome to WebmasterWorld Guest from 54.234.0.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
NMS FormMail Script Help
Custom thankyou page will not load
Flyingspark




msg:4317445
 3:22 pm on May 25, 2011 (gmt 0)

Good afternoon everyone,
I am a newbie to this scripting lark but use Dreamweaver regularly to create basic websites etc.
I have installed the NMS script FormMail Script generator onto one of my sites and successfully created a subscription form which validates and e-mails the results as it should.
It will not however, redirect to the custom thankyou page that I have created. It does not even redirect to the example page supplied with the code. It will only load the script within the NMS formmail file itself.
The site is hosted on Namesco and all pages are CGI enabled.
I have searched the net and checked the code and everything looks as it should. I am now at the stage that the more I look, the less I am likely to see.
Could anyone help?

I have read various posts on here advising against pasting code on here but can paste snippets if required.

Kind regards,

Clive.

 

janharders




msg:4317464
 3:46 pm on May 25, 2011 (gmt 0)

Welcome to WebmasterWorld, Clive!

Can you check wether the Redirect-headers are actually sent by the server? If you use Firefox, there's a Plugin called "Live HTTP Headers" that will show you exactly what is communicated between the client and server.

Flyingspark




msg:4317479
 4:04 pm on May 25, 2011 (gmt 0)

I am using IE9 and would need help checking that. The form was created using Dreamweaver if that helps, sorry.

janharders




msg:4317503
 4:45 pm on May 25, 2011 (gmt 0)

There seems to be a plugin for Internet Explorer called ieHTTPHeaders, your favorite search engine will find it for you.

Once it is installed, find out how to activate it in your browser and submit your form. It should log the server's Response. Edit out anything private and paste it here. It shouldn't be too long.

phranque




msg:4318355
 1:35 am on May 27, 2011 (gmt 0)

welcome to WebmasterWorld, Clive!

have you specified hidden form inputs for the redirect or return_link_url parameters?

Flyingspark




msg:4318533
 1:12 pm on May 27, 2011 (gmt 0)

Thanks for all your replies. Below is the Header view.

POST /nms_formmail.pl HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: [www....]
Accept-Language: en-gb
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: www.
Content-Length: 471
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: __utma=154628129.1514383801.1299686721.1306480203.1306501378.57; __utmz=154628129.1306162706.48.5.utmcsr=removed.co.uk|utmccn=(referral)|utmcmd=referral|utmcct=/contactus.html; __utmb=154628129.3.10.1306501378; __utmc=154628129;username and password removed; X-Mapping-kjicghkc=9EE581364B4168E55AD95955DBE039A8

recipient=enquiries@removed.co.uk&subject=Membership+Form&redirect=value%3D%22http%3A%2F%2Fwww.removed.co.uk%2Fthankyou_newmember%22&Company+name=company&Contact+name=company&Position=company&Address=company%0D%0Acompany&tel+No=01234567891&Fax+No=01234567891&E+Mail=abc@def%3Ecom&Website=abc.co.uk&descrition+of+business=company&select=Small+Business&select2=Website&select3=Yes+TLB+Status&Terms=agree&select4=Pay+By+Cheque&Submit=Submit

HTTP/1.1 200 OK
Server: Zeus/4.3
Date: Fri, 27 May 2011 13:04:48 GMT
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

POST /urs.asmx?MSURS-Client-Key=9oIj40l4KnXG15%2bTYiSzQQ%3d%3d&MSURS-Patented-Lock=yCPBMFhoUQ8%3d HTTP/1.1
Accept: text/*
Content-Type: text/xml; charset=utf-8
User-Agent: VCSoapClient
Host: urs.microsoft.com
Content-Length: 355
Cache-Control: no-cache

<RepLookup v="3"><G>ED8654D5-B9F0-4DD9-B3E8-F8F560086FDF</G><O>00000000-0000-0000-0000-000000000000</O><D>9.0.8110.0</D><C>9.00.8112.16421</C><OS>6.0.6002.2.0</OS><I>9.0.8112.16421</I><L>en-gb</L><R><Rq><URL>aHR0cDovL3d3dy5ob3JsZXlsb2NhbGJ1c2luZXNzZ3JvdXAuY28udWsvbm1zX2Zvcm1tYWlsLnBs</URL><O>PRE</O><T>TOP</T><HIP>85.233.160.70</HIP></Rq></R></RepLookup>

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Length: 410
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
Date: Fri, 27 May 2011 13:04:48 GMT
Connection: close

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Length: 410
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
Date: Fri, 27 May 2011 13:04:48 GMT
Connection: close

Flyingspark




msg:4320016
 3:35 pm on May 31, 2011 (gmt 0)

Mmm its all gone very quiet. Is it that bad?

:]

Clive

janharders




msg:4320108
 6:18 pm on May 31, 2011 (gmt 0)

Ha. No, not necessarily. I just wasted my knowledge of the interna of that script and hoped somebody else would jump in and save the day.

have you checked what phranque asked?
Otherwise: send me a private message and we'll take it to email to figure out what is wrong.

phranque




msg:4320282
 12:45 am on Jun 1, 2011 (gmt 0)

Mmm its all gone very quiet. Is it that bad?

this was a 3-day holiday weekend in US & UK so perhaps that would explain the silence...


i noticed this fragment in your response:
redirect=value%3D%22http%3A%2F%2Fwww.removed.co.uk%2Fthankyou_newmember%22


if you decode that string it looks like:
redirect=value="http://www.removed.co.uk/thankyou_newmember"

not sure why the redirect parameter contains a [value=] and has the url double-quoted but i'm guessing that might cause some problems for NMS FormMail.

perhaps you should look at the way the "redirect" hidden form parameter is coded.

Flyingspark




msg:4321442
 7:23 am on Jun 3, 2011 (gmt 0)

This has been a real headache, but I thank you for your help.
After spending way too much time trying to work this out I deleted the script and inserted a simple piece of PHP code which works perfectly.
If anyone wold like the code, or the mods think it would be useful to have on here for others who might have a similar problem, please let me know and I will upload it. (The file is only small).

Kind regards,

Clive.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved