close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

redirect after form submission not working

Thread began 1/30/2014 7:57 am by Sweens | Last modified 1/30/2014 11:53 am by Jason Byrnes | 1700 views | 5 replies |

Sweens

redirect after form submission not working

HI

I've a couple of foerms which have been working fine - and now they dont! I haven't made any changes, as far as I'm aware, though I have upgraded WA versions.

Contact Form attached + the error message when I added the 'show errors' code to the page (removed in the attachment)

Many thanks
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

this code at line 2 is causing the redirect error:

<?php header('X-UA-Compatible: IE=edge,chrome=1'); ?>

move that line to be just before the doctype tag

Sign in to reply to this post

Sweens

Hi Jason

Sorry - I forgot to attach the included file - that does the emailing!

Moving that code made no difference

Sign in to reply to this post

Jason ByrnesWebAssist

Instead of using require_once to add the tab_contact page to the contact page, use framework builder Plugins.


the problem is that by using require once, you end up putting the UE code that should be above the doctype tag on the contact page inside of the body tag.


this causes the headers already sent error, because there is already HTML on the page before it gets to the header redirect function.

Sign in to reply to this post

Sweens

Hi Jason

I can't get my head round framewrork plugins, so I've amalgamated the 2 pages int one and all now works.

Thanks for your help, as always.

Cheers
chris

Sign in to reply to this post

Jason ByrnesWebAssist

Framework builder plugins are basicly the same as using require_once to add one page to another, the difference is that with plugins, the page being added is parsed into the pieces above the doc type, in the head and in the body of the page. When added to the main page, the piece that is the code above the doctype is added above the doctype, the piece that is the code in the head is added in the head, and the piece that is the code in the body is added in the body.

because it breaks the original page down into the pieces and adds the code chunks to the appropriate places, it prevents the issue you experienced where the redirect doesn't work.


framework builder is a power tool that allows you to create page with pieces of functionality like a log page and re use them in multiple parts of the site.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...