Click to See Complete Forum and Search --> : not sure where to post tjis so it goes in here


slim
08-18-2003, 08:34 PM
ok I have jus tgot my first web space with all the extras. I am trying to setup a simple request form which emails back to me. This I have done. There is a mailfom.cgi on the server (preinstalled and configured)
When I hit the send button I am taken to a plain page telling e the the post has been sent with the details I entered in it and I get the email.

My problem is this new page which opens. taking users away from my well designd site witch is where I wan tot keep them. The only way for the user to return to is via the back button on their browsers. I do not use frames Nor do I want to open the form in a new window.

so is there a way to redirect the user after confirmation of the email being sent back to my home page with the submit button. Or perhaps a timed delay after the results page.
I have no control over the formmail script. thanks....

I hoppe this is clear.:confused:

Sux0rZh@jc0rz
08-18-2003, 08:35 PM
you have no control over the formail script?

slim
08-18-2003, 08:41 PM
no the script is in sys-bin which I do not have access to.

Sux0rZh@jc0rz
08-18-2003, 08:46 PM
well that sure makes your life harder. do u have to send it(email it) to your host in order for it to get posted? because if thats the case it's gonna be hell designing your sites.

slim
08-18-2003, 08:56 PM
no its just the post command..

Sux0rZh@jc0rz
08-18-2003, 09:00 PM
... what i mean is to attach a new file to your server (post) not the post command... cause if you had access to the directory then you could change the form script so that it doesn't redirect... or you could do the forms in javascript or html so you don't have to worry about accessing the cgi... you could just post a javascript with no redirect function.

Sux0rZh@jc0rz
08-18-2003, 09:02 PM
you could also change the form so that the post command post's a href back to your site.

slim
08-18-2003, 09:12 PM
ok that sounds somthing like whta I want but any idea on how its done ? and in simple terms pls remembering its my forst website ever and I am only 12..

Sux0rZh@jc0rz
08-18-2003, 09:18 PM
12? lucky dawg. getting started early is always good. go to www.w3schools.com and learn up. I'll look into making a javascript for you. stay online.

Sux0rZh@jc0rz
08-18-2003, 09:20 PM
post your website so I can better see what your talking about, eh?

pyro
08-18-2003, 09:37 PM
I'd be willing to bet you can add a hidden field to the form that will let you set a redirect page. Read the documentation for the script... Or, if your site really has "all the extras" take a look at this PHP script: http://www.webdevfaqs.com/php.php#mailer

Sux0rZh@jc0rz
08-18-2003, 09:42 PM
Pyro, you sure love your PHP. I can say that.

pyro
08-18-2003, 09:44 PM
Yes, Pyro == PHP Evangalist... :D

Sux0rZh@jc0rz
08-18-2003, 09:46 PM
*has a flash back to Evangelion* OOO just what i wanted to be thinking about right now. the best anime in teh world(right after akira which is right after cowboy bebop which is right after F.L.C.L)

slim
08-20-2003, 05:08 AM
THANKS Pyro thats just what I needed works a treat. :D :D

pyro
08-20-2003, 07:24 AM
You're very welcome... :)