|
|
#1 (permalink) |
|
mediatechie.com
Join Date: Nov 2002
Location: London, UK
Posts: 809
|
FormMail query
hi guys,
ive just set up a form on my personal website which uses formail and usually i wouldnt post queries which directly link to my site since its almost like advertising my website but anyhoo... My query relates to the page that formail send you to once you press the Send email button to submit the email.. Does anyone know how i can change the fonts/colours and layout of this page OR have it redirect to a page i can create later. im attaching a copy of the formmail.pl file (renamed to formmail.txt) which i asume deals with the forwarding etc of the form and hence should contain the code. ive seen that there is a bunch of html at the bottom of the file but that deals with the output pages that report errors with the setup of the form so are irrelevant to this question. this is buggin me and i would be eternally greatful for any webdesign gurus help! Regards KF
__________________
http://mediatechie.com Leave me a message in my shoutbox! ... would appreciate the feedback! thanks people! ![]() |
|
|
|
|
|
#2 (permalink) |
|
Da House Nerd
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
|
I think a syntax error is in the uploaded file (a " too much or too less), but I think you should look at this:
PHP Code:
__________________
Linux virusscanner detected a virus: Windows 95 ... delete [Y/n] y ~ ~ :wq |
|
|
|
|
|
#3 (permalink) | ||
|
mediatechie.com
Join Date: Nov 2002
Location: London, UK
Posts: 809
|
Greffov,
Im not sure how its meant to look once i implement the code, and infact if im placing the code in the right place but ive looked at the help file for form mail and it says the following regarding REDIRECT: Quote:
Quote:
thanks for the help. KF
__________________
http://mediatechie.com Leave me a message in my shoutbox! ... would appreciate the feedback! thanks people! ![]() |
||
|
|
|
|
|
#4 (permalink) |
|
Da House Nerd
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
|
no
you shouldn't change the code any more. You should just change the html page which calls the .pl script
__________________
Linux virusscanner detected a virus: Windows 95 ... delete [Y/n] y ~ ~ :wq |
|
|
|
|
|
#5 (permalink) |
|
mediatechie.com
Join Date: Nov 2002
Location: London, UK
Posts: 809
|
thats the problem Greffov, I dont actually see any mention of where this THANKYOU FOR FILLING THE FORM page is... i cant seem to figure it out.. otherwise it would be simple to just change the address of where it points to... it seems like a script generated page is produced which shows u what youve just typed and sent using the form .. its very confusing to say the least...
__________________
http://mediatechie.com Leave me a message in my shoutbox! ... would appreciate the feedback! thanks people! ![]() |
|
|
|
|
|
#6 (permalink) |
|
Da House Nerd
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
|
ok, lets put one step back.
If you don't give the script a clue where it should go to after the mail was sent, it defaults to some stupid odd page. So, you want to give the script a clue where to go to. Thus add something like this: <input type=hidden name="redirect" value="http://your.host.com/to/file.html"> where the your.host.com thing is the page you want to appear having your own thank you message. Maybe I should ask you where and how the script is linked in your website, ie. how do you use the thing so I can send email from your site?
__________________
Linux virusscanner detected a virus: Windows 95 ... delete [Y/n] y ~ ~ :wq |
|
|
|
|
|
#7 (permalink) |
|
mediatechie.com
Join Date: Nov 2002
Location: London, UK
Posts: 809
|
I DONE IT!!!
where i was getting confused was that i was expecting to have to change the perl script whereas the code i needed to enter was on my actual form page..duh!!ive added a temporary redirect to a blank page for now.. will sort it out when i get a little more time tomorrow night... off to bed i go!! thanks again greffov KF
__________________
http://mediatechie.com Leave me a message in my shoutbox! ... would appreciate the feedback! thanks people! ![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|