| View previous topic :: View next topic |
| Author |
Message |
packerm
Joined: 05 Dec 2006 Posts: 8
|
Posted: Dec 15, 2006 12:18 pm Post subject: chnaging url_post to a redirect htm page |
|
|
Hi
Read another post on this forum that said I could chnage the url_post parm in xuploadconfig.pm to a web page rather than the post-cgi. Just wanted to direct it to a thank you page basically.
If you just change it to
url_post => 'http://www.tshirt-mad.co.uk/thanks.htm',
you get a 405 error saying you can't use a post method to open the web page.
Any ideas if I need to change anything in the CGIs to get this to work, or is there a better way of re-directing back to a web page once the upload is finished.
Thanks
Mick |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Dec 15, 2006 12:46 pm Post subject: |
|
|
Yes. This error was born in Pro 2.3 version after config simplification and already solved, won't be in 2.4 version.
Here goes quick fix: in upload.cgi insert above line "if($ENV{QUERY_STRING}!~/js_on=1/)":
| Code: |
if($url_post=~/\.htm(l|)$/i)
{
print"Content-type: text/html\n\n";
print"<HTML><HEAD><Script>parent.document.location='$url_post'</Script></HEAD></HTML>";
exit;
}
|
|
|
| Back to top |
|
 |
packerm
Joined: 05 Dec 2006 Posts: 8
|
Posted: Dec 15, 2006 1:37 pm Post subject: |
|
|
| Thanks, works a treat. |
|
| Back to top |
|
 |
vnairp11
Joined: 07 Jan 2007 Posts: 10
|
Posted: Jan 08, 2007 4:35 pm Post subject: |
|
|
| i put in the code where do you put the url to redirect? is it the url post in form html? |
|
| Back to top |
|
 |
vnairp11
Joined: 07 Jan 2007 Posts: 10
|
Posted: Jan 08, 2007 4:52 pm Post subject: |
|
|
| Nm fixed this issue thanks. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|