SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    May 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Is it possible to have two actions for one button?

    Hello,

    I have a friend who is using a form where the person types in their name and email address - then when you click on the button it takes you to another site to get the free information he offers.

    He wants to still do that but also have his site deliver a message to the person as well is there a way to do this?

    If you need me to post the code please let me know.
    Thanks for any help you maybe able to give me.

    Roselle

  2. #2
    SitePoint Addict Phidev's Avatar
    Join Date
    Oct 2008
    Location
    Texas
    Posts
    204
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why not show a message to the user and then send it to the other page?

  3. #3
    SitePoint Zealot mudflow's Avatar
    Join Date
    Jul 2008
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can combine all of that to a single page.

  4. #4
    SitePoint Member
    Join Date
    May 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Phidev, he does not want to do that...He wants his autoresponder to send the message to them. Thanks for asking.

    Hi mudflow,
    Great to hear it can be done.
    Would you be willing to walk me through that if I post or send you the page code? I honestly have not been able to figure out how to.

    Thank You
    Roselle

  5. #5
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Do you know how to use PHP to send an email from a form? Do you know how to use PHP to send someone to a page or rather to write/create the html for the message you want? If so, add the create a page code after the end of the send an email code, that's all.

  6. #6
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This may or may not be appropriate, but I believe most hosts allow the use of auto responders via the control panel email section.... could be a place to look (and probably the easiest way of setting something like this up - when an email is received by the client, an auto responder kicks in).

    Nadia

  7. #7
    SitePoint Member
    Join Date
    May 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Dr John no I do not.

    Hi Nadia P, yes I have the cpanel autoresponder ready to deliver the message he wishes to use but I am not understanding how to make the code do both things.

    He wishes it to still redirect to the off site page and also deliver an email message via his autoresponder here is the code if someone can please help me I would appreciate it. Please forgive my late response I have been sick.

    Thank You I also wish to make it clear this is for a commercial site but I am not getting paid for this he is a friend.
    Roselle
    Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="description" content="Get Google Ads Free. Learn to Get Free Google Ads, Make money with Google, Free Advertising, Quick Make Money, Great for Advertising, Google Adwords, Make Money Online, Network Marketing, and Internet Marketing! ">
    <meta name="keywords" content="get google ads free,free google adwords, adsense, adwords, google, make money online, internet marketing, advertising, google ads, quick money,money google, quick make money,free advertising, pay per click">
    <title>Get Google Ads Free!</title>
    
    <style type="text/css">
    <!--
    table.MsoNormalTable {
    line-height:115%;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    }
    p.MsoNormal {
    margin-top:0in;
    margin-right:0in;
    margin-bottom:10.0pt;
    margin-left:0in;
    line-height:115%;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    }
    -->
    </style>
    
    </head>
    <body link="#666666" vlink="#666666" alink="#cc0001" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" bgcolor="#ffffff">
    
    <table id="table5" align="center" border="0" cellpadding="0" cellspacing="0">
    	<tbody>
      <tr>
    		
        <td bgcolor="#e2e2e2" valign="top" width="50%">
    		
          <table id="table6" border="0" cellpadding="0" cellspacing="0" height="224" width="100%">
    			<tbody>
            <tr>
    				
              <td background="http://www.internetmarketersmall.com/free_website/images/bg.gif">&nbsp;</td>
            </tr>
    		</tbody>
          </table>
          <p>&nbsp;</p>
        </td>
        <td background="http://www.internetmarketersmall.com/free_website/images/sh_left.gif" valign="top" width="12">
    		<img src="http://www.internetmarketersmall.com/free_website/images/sh_left_top.gif" width="12" height="1">
          <table id="table7" border="0" cellpadding="0" cellspacing="0" height="100%" width="7">
    			<tbody>
            <tr>
              <td height="82" valign="top">
    				<img src="http://www.internetmarketersmall.com/free_website/images/sh_left.gif" height="1" width="12"></td>
            </tr>
    			
            <tr>
    				
              <td height="2"></td>
            </tr>
    			
            <tr>
              <td height="116">
    				<img src="http://www.internetmarketersmall.com/free_website/images/sh_left.gif" height="1" width="12"></td>
            </tr>
    			
            <tr>
    				
              <td height="2"></td>
            </tr>
    			
            <tr>
    				
              <td background="http://www.internetmarketersmall.com/free_website/images/sh_left.gif">&nbsp;</td>
            </tr>
    		</tbody>
          </table>
        </td>
        <td bgcolor="#ffffff" valign="top" width="738" >
    		
          <table id="table8" border="0" bordercolor="#c0c0c0" cellpadding="0" cellspacing="0" width="100%">
    			<tbody>
            <tr>
              <td style="border-style: none; border-width: medium;"></td>
            </tr>
    			
            <tr>
              <td style="border-top-style: none; border-top-width: medium;" align="center"  valign="top" width="675">
    				
                
    					
                    
                  
                <img src="http://www.internetmarketersmall.com/free_website/images/header_top2.gif" width="675" height="86">
                <table id="table9" border="0" cellpadding="0" cellspacing="0" width="100%" >
    						<tbody>
                    
                  <tr>
    							
                        
                      
                    <td valign="top" style="padding:20px 40px;">
    							
                        
               
                            
                          
                        <div align="center">
                              
                            
                          <p align=center style='text-align:center'><b><span style='font-size:18.0pt;line-height:115%;font-family:"Tahoma","sans-serif"'>"Imagine the Satisfaction You'll Feel When<br />
                              You <span style='color:#C00000'>Get All Your Google Pay-Per-Click Ads</span><br />
                              from Now On for <u><span style='background:yellow'>FREE</span></u><span style='background:yellow'>!</span> ... Just Like<br />
                              Herman, The Little Nerd Who Could!"</span></b></p>
                          <p align=center style='text-align:center'><br>
                                <img width=323
    height=410 id="Picture 1" src="http://www.internetmarketersmall.com/free_website/images/goober.jpg"></p>
                          <p align=center style='text-align:center'><span
    style='font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif"'>
                                    <br>
                                    <iframe scroll="no" src="http://PlayAudioMessage.com/play.asp?m=379834&amp;f=ZWHNAK&amp;ps=14&amp;c=FFFFFF&amp;pm=2&amp;h=29" frameborder="0" height="25" scrolling="no" width="75"></iframe>
                                <br>
                                    <span style='color:#595959'>Play me now!</span></span></p>
                          <p align=center style='text-align:center'><b><span
    style='font-size:14.0pt;line-height:115%;font-family:"Verdana","sans-serif"'>
                                Stop blowing your hard-earned money on Google<br />
                                ads! &ndash; Because you no longer have too ...</span></b></p>
                          <p align="left"><span style='font-size:10.0pt;line-height:115%;font-family:
    "Arial","sans-serif"'>
                                A <i>retired</i> New York physician discovered the <b>ultimate secret</b> that
                                will allow you too to be able to get all the ads you could ever want from
                                Google &ndash; <b><span style='background:yellow'>but without paying for them!</span></b></span></p>
                          <p align="left"><span style='font-size:10.0pt;line-height:115%;font-family:
    "Arial","sans-serif"'>This secret is so powerful in fact that this same retired
                                New York doctor used it very quietly over the last 10 years to secretly rake in
                                over <b>$400 million in sales</b> from 16 online businesses, and while saving
                                over $100 million in otherwise Google bills!</span></p>
                          <p align="left"><span style='font-size:10.0pt;line-height:115%;font-family:
    "Arial","sans-serif"'>And now he's sharing with YOU his secret (but only for a
                                short while in order to keep only a select few privileged people in the know &ndash;
                                but will YOU be one of them?)</span></p>
                          <p align=center style='text-align:center;line-height:
            normal'><b><span style='font-size:16.0pt;font-family:"Tahoma","sans-serif";
            letter-spacing:-.75pt'>
                                Let My New Secret Show You How Easy It<br>
                                                            Is To Get Google Ads FREE For Your Website!</span></b></p>
                          <div align=center>
                                                                
                                
                              
                            <table style="border-style:dashed; border-width:3px; BORDER-COLLAPSE: collapse" bordercolor="#000000" cellspacing="0" cellpadding="10" width="81%" bgcolor="#f6f6f6" border="1">
                                                                  
                                  
                                
                              <tr>
                                                                    
                                    
                                  
                                <td bgcolor="#FFFFCC">
                                      
                                    
                                  <p align=center style='text-align:center;line-height:
              normal'><b><span style='font-size:16.0pt;font-family:"Tahoma","sans-serif";
              color:black;letter-spacing:-.75pt'>&nbsp;Your </span></b><b><u><span
              style='font-size:16.0pt;font-family:"Tahoma","sans-serif";color:#950000;
              letter-spacing:-.75pt'>FREE</span></u></b><b><span style='font-size:
              16.0pt;font-family:"Tahoma","sans-serif";color:#C1311B;letter-spacing:
              -.75pt'> </span></b><b><span style='font-size:16.0pt;font-family:
              "Tahoma","sans-serif";color:black;letter-spacing:-.75pt'>Details!</span></b></p>
                                  <p style='line-height:normal'><b><span
              style='font-size:10.0pt;font-family:"Verdana","sans-serif";
              color:black'>Fill out the form below</span></b><span
              style='font-size:10.0pt;font-family:"Verdana","sans-serif";
              color:black'> and you'll immediately receive FREE Details showing you
                                                                          how to <b>Get Google Ads FREE</b> and how this amazing Secret can allow
                                                                          you too to <b>MAKE MILLIONS</b> for anything you want!</span></p>
                                  <div align=center>
                                        
                                      
    <form method="get" action="http://mentordon.freegoogle.hop.clickbank.net">
      <table border=0 cellspacing=0 cellpadding=4 width="446">
        <tr>                                        
          <td width="185" height="35" align="right">
            <p align=right style='text-align:right;line-height:normal; font-size:10.0pt; font-family:"Verdana","sans-serif"'><b>Enter Your First Name:&nbsp;&nbsp; </b></p>
          </td>
          <td width="261">
            <p><input type="TEXT" size="28" name="name"></p>
          </td>
        </tr>
        <tr>
          <td width="185" height="37" align="right">
            <p align=right style='text-align:right;line-height:normal; font-size:10.0pt; font-family:"Verdana","sans-serif"'><b>Type In Your Email <br>Address:&nbsp;&nbsp; </b></p>
          </td>
          <td width="261">
            <p><input type="TEXT" size="28" name="email"></p>
          </td>
        </tr>
        <tr>
          <td colspan=2>
            <div align=center>
                <table id="table33" bgcolor="#950000" border="0" cellpadding="4" cellspacing="0">	
    			<tbody>
                  <tr>
                    <td>
                      <p align="center"><font color="#000000" face="Arial" size="2"><input value="Click Here Now For Your Free Details " style="font-size: 14pt; font-family: Arial; letter-spacing: -1px; font-weight: bold; width: 360px; height: 40px;" type="submit" name="submit"></font></p>
                    </td>
                  </tr>
    			</tbody>
                </table>
            </div>
          </td>
        </tr>
      </table>
    </form>
    
                                  </div>
                                 </td>
                              </tr>
                                                                
                                
                              
                            </table>
                          </div>
                        </div>
                      
                    </td>
                  </tr>
    					</tbody>
                  
                </table>
              </td>
            </tr>
    			
            <tr>
              <td style="border-top-style: none; border-top-width: medium;" align="center" height="39">
    				
                <table style="border="0" cellpadding="3" cellspacing="0" height="30" width="675">
    						<tbody>
                  <tr>
    							
                    <td>
                      <div align="center">
    								<font face="Arial" size="1">
                        <p style="color:#aaa; font-size:9pt; border-top:1px solid #aaa; padding-top:10px;"><b>Terms of Service & Disclaimer</b></p>
                        <p style="color:#aaa; font-size:9pt;">Copyright &copy; 2008 InternetMarketersMall.com.  All Rights Reserved.
    <br>
                          <br>
                        </p>
                        </font></div>
                    </td>
                  </tr>
    					</tbody>
                </table>
              </td>
            </tr>
    		</tbody>
          </table>
        </td>
        <td background="http://www.internetmarketersmall.com/free_website/images/sh_right.gif" valign="top" width="12">
    		
          <div align="right"><img src="http://www.internetmarketersmall.com/free_website/images/sh_right_top.gif" width="12" height="1">
    			
            <table id="table15" border="0" cellpadding="0" cellspacing="0" height="100%" width="7">
    				<tbody>
              <tr>
                <td height="82" valign="top">
    					<img src="http://www.internetmarketersmall.com/free_website/images/sh_right.gif" height="1" width="12"></td>
              </tr>
    				
              <tr>
    					
                <td height="2"></td>
              </tr>
    				
              <tr>
                <td height="116">
    					<img src="http://www.internetmarketersmall.com/free_website/images/sh_right.gif" height="1" width="12"></td>
              </tr>
    				
              <tr>
    					
                <td height="2"></td>
              </tr>
    				
              <tr>
    					
                <td background="http://www.internetmarketersmall.com/free_website/images/sh_right.gif">&nbsp;</td>
              </tr>
    			</tbody>
            </table>
          </div>
        </td>
        <td bgcolor="#e2e2e2" valign="top" width="50%">
    		
          <table id="table16" border="0" cellpadding="0" cellspacing="0" height="224" width="100%">
    			<tbody>
            <tr>
    				
              <td background="http://www.internetmarketersmall.com/free_website/images/bg.gif">&nbsp;</td>
            </tr>
    		</tbody>
          </table>
          <p>&nbsp;</p>
        </td>
      </tr>
      </tbody>
    </table>
    </body>
    </html>
    You can see it gives you the hop he needs from this affiliate site, but he also wishes to to send the name and email addy to his autoresponder so that he can have his reposnder send out the information reminder.

    What I can not figure out is how to get it to do both of these things at one time.

    Thank You
    Roselle


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •