StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > Webmaster > Lounge (non-StatCounter related topics here!)

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 10-13-2004, 01:22 AM
motorwatchercounter motorwatchercounter is offline
Master Member
 
Join Date: Sep 2004
Location: England
Posts: 1,222
Default Form post and redirect question

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  
Old 10-13-2004, 01:30 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,179
Default

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>
or the equivalent php:

Code:
<?php
location('some_new_place.html');
?>
at some point after your email handling script (assuming it's not just a mailto: thing used straight in the form).

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  
Old 10-13-2004, 01:41 AM
motorwatchercounter motorwatchercounter is offline
Master Member
 
Join Date: Sep 2004
Location: England
Posts: 1,222
Default

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  
Old 10-13-2004, 01:47 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,179
Default

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  
Old 10-13-2004, 01:55 AM
motorwatchercounter motorwatchercounter is offline
Master Member
 
Join Date: Sep 2004
Location: England
Posts: 1,222
Default

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  
Old 10-13-2004, 02:08 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,179
Default

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  
Old 10-13-2004, 02:19 AM
motorwatchercounter motorwatchercounter is offline
Master Member
 
Join Date: Sep 2004
Location: England
Posts: 1,222
Default

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  
Old 10-13-2004, 02:50 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,179
Default

Quote:
Originally Posted by motorwatchercounter
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.

Yes, I use a hand-coded php mail script myself, called from a form.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #9  
Old 10-13-2004, 09:14 AM
gntombel gntombel is offline
Member
 
Join Date: Oct 2004
Location: Cape Town
Posts: 67
Send a message via Skype™ to gntombel
Default Just on that subject

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  
Old 10-13-2004, 10:36 AM
motorwatchercounter motorwatchercounter is offline
Master Member
 
Join Date: Sep 2004
Location: England
Posts: 1,222
Default

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

Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:24 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.