![]() |
| Home | Demo | Services | Features | Help | User Forum | Blog | About | |
|
#1
|
|||
|
|||
|
I need to set some code on a form so it sends me an email and goes to another page with one click of one button.
I am using the method="post" action="to my sendmail code. button is <input type="submit" value="Submit" name="submit"> No problems with the email but by clicking the submit how can I redirect to the new screen ans use sendmail? As always, all help is appriciated. |
|
#2
|
||||
|
||||
|
Are you using php for sending mail? I think not, since your are on a windows hosting, aren't you?
You could use javascript like: Code:
<script language="javascript" type="text/javascript"> document.location="some_new_place.html"; </script> Code:
<?php
location('some_new_place.html');
?>
This will transfer to a new page. ---- Or did I not understand your question? Does the submit go to your particular page that performs the sending of the email at all?
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#3
|
|||
|
|||
|
Warm greetings Christina,
I am not using PHP. The form is a sendmail not mailto. Tried the javascript but it a jumped me before I clicked the button. I think I have cracked it by using; <input type="hidden" name="REQUIRED" value="email"> <input type="submit" value="Submit" name="submit"> <input type="reset" value="Clear Form" name="reset"> <input type="hidden" name="SUCCESS-RESPONSE-URL" value= "new page.htm" |
|
#4
|
||||
|
||||
|
Yes, that would have been my next bit of hint if you'd said php!
Is the sendmail a script that you coded yourself?
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#5
|
|||
|
|||
|
Greetings Christina,
Yep the sendmail is self coded and goes via my cgi-bin. It works fine. The success= code also works now. I am revamping my site and have new products. The need for this is to data capture via a form and then to direct to take the payments with a single button click. This looks to be working OK but thanks for the help (again). |
|
#6
|
||||
|
||||
|
That't the advantage - you can do whatever you want in those scripts.
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#7
|
|||
|
|||
|
Greetings Christina,
Assuming I know how to do it, of course The sendmail has more security and lets me use forms rather than just filling in "to", "subject" etc. |
|
#8
|
||||
|
||||
|
Quote:
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#9
|
|||
|
|||
|
Is there anyone who knows a simpler way of using the mailto system to send a form and be able to successfully send the email without getting messages such as "outlook is not your default email client"?
|
|
#10
|
|||
|
|||
|
Hi gntombel,
This seems to be a set up problem on your PC. This sometimes happens when you have Outlook Express on your machine and put something like MS Office on it. Office will load Outlook and you then have 2 mail systems. At set up you should have had an option to make one programme the default. Anyone using the mailto from their PC should not get this. Look at your mail settings and change the default |
![]() |
| Thread Tools | |
| Display Modes | |
|
|