Jump to content

Jonnym53

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by Jonnym53

  1. Hi all. Not been here for a while but I'm now in need of some help. I'm trying to understand what and how to replace some code in a squeeze page. the code i'm trying to replace with new is because I have found the page is being spammed by a spam bot and I have new code to add a capcha addition to the sequence which should stop it. The page is hosted, along with lots more, at Hostgator, the code comes from I-Contact form builder. I have it saved on my desktop. The page code, currently, looks like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Secrets to professional dog training</title> <meta name="description" content="Comprehensive website detailing the secrets that professional dog trainers use to get dogs to behave just the way they wish."> <meta name="keywords" content="dog,dogs,training,dogtraining,secrets,professional dog training,dog behaviour,train your dog."> <meta name="robot" content="index,follow"> <meta name="copyright" content="Copyright &copy; 2012 my-dogtrainingsecrets. All Rights Reserved."> <meta name="generator" content="www.onlinemetatag.com"> <!-- MetaTags - Online Meta Tag http://www.onlinemetatag.com --> <!-- Create your meta tag and increase your website position on search engines! --> <style type="text/css"> .auto-style25 { background-color: #FFFFFF; } .auto-style35 { text-align: center; font-family: Verdana; font-weight: 700; font-style: italic; font-size: medium; } .auto-style36 { font-style: normal; font-weight: normal; } .auto-style37 { text-align: center; font-size: x-small; } .auto-style38 { border: 1px solid #000000; text-align: center; background-color: #FFFFE8; } .auto-style39 { text-align: left; } .auto-style40 { font-size: x-small; } </style> </head> <body leftmargin="190" topmargin="70" style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" alink="#00ffff" link="#0000ee" marginheight="0" marginwidth="0" vlink="#551a8b"> <center> <p style="margin-top: 0pt; margin-bottom: 0pt;">&nbsp;</p> </center> <table style="text-align: left; margin-left: auto; margin-right: auto; width: 890px; height: 592px;" border="12"> <tbody> <tr> <td> <center> <p style="margin-top: 0pt; margin-bottom: 0pt;" align="center"><font style="background-color: rgb(255, 255, 255); font-size: 21pt;" face="Impact">&nbsp;Need to Train Your Dog?&nbsp; </font> </p> <font color="#000000"> </font> <p style="margin-top: 7px; margin-bottom: 10px;" align="center"><font color="#000000"><font style="font-size: 32pt;" face="Impact">"Learn How to Train Your Dog Like a Professional in No Time At All"</font></font></p> </center> <table class="auto-style25" style="width: 669px; height: 348px;" align="center" cellpadding="7"> <tbody> <tr> <td valign="top"> <table style="width: 90%;" align="center"> <tbody> <tr> <td class="auto-style35" style="width: 592px;" valign="top"> <font color="#000000" face="Verdana, Arial, Helvetica"> <strong>"That's right. You Too Can Learn To Train Your Dog To Be As Obedient as a Crufts Champion. This <big style="font-weight: bold; color: rgb(255, 0, 0);">Free!</big> Report will Show You How!"<br> <br> </strong> <span class="auto-style36">Simply enter your primary email address in the form<br> below to <strong>get instant access</strong>...<br> </span><strong><br> </strong><strong> </strong> <table style="width: 90%;" class="auto-style25" align="center"> <tbody> <tr> <td class="auto-style25"> <img src="images/s3-green_l.png" style="float: right;" height="129" width="120"></td> <td class="auto-style38" style="width: 257px;"> <form method="post" action="https://app.icontact.com/icp/signup.php" name="icpsignup" id="icpsignup1839" accept-charset="UTF-8" onsubmit="return verifyRequired1839();"><input name="redirect" value="http://my-dogtrainingsecrets.com/articles/how-to-train-your-dog-quickly-and-effectively/" type="hidden"> <input name="errorredirect" value="http://my-dogtrainingsecrets.com/articles/how-to-train-your-dog-quickly-and-effectively/" type="hidden"><input name="listid" value="44525" type="hidden"><input name="specialid:44525" value="CUIP" type="hidden"><input name="clientid" value="871932" type="hidden"><input name="formid" value="3813" type="hidden"> <input name="reallistid" value="1" type="hidden"><input name="doubleopt" value="0" type="hidden"> <table class="signupframe" border="0" cellpadding="5" cellspacing="0" width="260"> <tbody> <tr> <td valigh="top" class="auto-style39" style="width: 101px;">First Name </td> <td align="left"> <input name="fields_fname" type="text"></td> </tr> <tr> <td aligh="top" class="auto-style39" style="width: 101px;"> <span class="required">*</span> Email </td> <td align="left"> <input name="fields_email" type="text"></td> </tr> <tr> <td style="width: 101px;"> </td> <td class="auto-style40">* = Required Field</td> </tr> <tr> <td style="width: 110px;"> </td> <td><input name="Submit" value="Get Instant Access" type="submit"></td> </tr> </tbody> </table> </form> <script type="text/javascript"> var icpForm1839 = document.getElementById('icpsignup1839'); if (document.location.protocol === "https:") icpForm1839.action = "https://app.icontact.com/icp/signup.php"; function verifyRequired1839() { if (icpForm1839["fields_email"].value == "") { icpForm1839["fields_email"].focus(); alert("The Email field is required."); return false; } return true; } </script></td> <td class="auto-style25"> <img src="images/s3-green_r.png" style="float: left;" height="129" width="120"></td> </tr> </tbody> </table> <br> <table style="width: 63%;" align="center"> <tbody> <tr> <td> <img src="images/nospaming.png" height="17" width="40"></td> <td class="auto-style37">Your privacy is protected. Your information will never be shared.&nbsp; We hate spam too! </td> </tr> </tbody> </table> <br> </font></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html> The Code I'm trying to add has 2 versions. I think the long one is meant to be posted as HTML on a web page. The short version is: <script type="text/javascript" src="//app.icontact.com/icp/core/mycontacts/signup/designer/form/automatic?id=102&cid=871932&lid=7416"></script> The long version is: <script type="text/javascript" src="//app.icontact.com/icp/static/form/javascripts/validation-captcha.js"></script> <script type="text/javascript" src="//app.icontact.com/icp/static/form/javascripts/tracking.js"></script> <link rel="stylesheet" type="text/css" href="//app.icontact.com/icp/static/human/css/signupBuilder/formGlobalStyles.css"> <style type="text/css" id="signupBuilderAdvancedStyles"> </style> <style type="text/css" id="signupBuilderStyles"> #ic_signupform .elcontainer { background: #ffffff; text-align: left; max-width: 300px; padding: 10px 10px; border-radius: 0px; border: 1px solid #000000; font-size: 12px; color: #226699; font-family: arial; } #ic_signupform .elcontainer.center-aligned .formEl { margin-right: auto; margin-left: auto; } #ic_signupform .elcontainer.right-aligned .formEl { margin-left: auto; } #ic_signupform .form-header { display: none; background: #ffffff; margin-top: -10px; margin-left: -10px; margin-right: -10px; margin-bottom: 10px; /* using padding on purpose */ padding-top: 30px; padding-right: 10px; padding-bottom: 30px; padding-left: 10px; border-radius: calc(0px - 1px) calc(0px - 1px) 0 0; text-align: center; font-size: 150%; color: #333333; border-bottom: 1px solid #dddddd; } #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-input label, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-dropdown label, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-checkbox h3, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-input label, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-dropdown label, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-checkbox h3 { width: 30%; } #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-checkbox h3, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-checkbox h3 { line-height: 3em; } #ic_signupform .elcontainer.tight.inline-label-left .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.tight.inline-label-left .formEl.fieldtype-checkbox h3, #ic_signupform .elcontainer.tight.inline-label-right .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.tight.inline-label-right .formEl.fieldtype-checkbox h3 { line-height: 2em; } #ic_signupform .elcontainer.generous.inline-label-left .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.generous.inline-label-left .formEl.fieldtype-checkbox h3, #ic_signupform .elcontainer.generous.inline-label-right .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.generous.inline-label-right .formEl.fieldtype-checkbox h3 { line-height: 4em; } #ic_signupform .elcontainer.inline-label-left .formEl input[type="text"], #ic_signupform .elcontainer.inline-label-left .formEl select, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-radio .option-container, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-checkbox .option-container, #ic_signupform .elcontainer.inline-label-right .formEl input[type="text"], #ic_signupform .elcontainer.inline-label-right .formEl select, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-radio .option-container, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-checkbox .option-container { width: 70%; } #ic_signupform .elcontainer.hidden-label .formEl.required:before { color: #000000; } #ic_signupform .elcontainer .formEl { font-size: 1em; } #ic_signupform .elcontainer .formEl.fieldtype-input label, #ic_signupform .elcontainer .formEl.fieldtype-dropdown label, #ic_signupform .elcontainer .formEl.fieldtype-radio h3, #ic_signupform .elcontainer .formEl.fieldtype-checkbox h3 { font-size: 100%; font-weight: bold; color: #226699; } #ic_signupform .elcontainer .formEl.fieldtype-input input[type="text"], #ic_signupform .elcontainer .formEl.fieldtype-dropdown select { background-color: #ffffff; border: 1px solid #666666; border-radius: 0px; } #ic_signupform .elcontainer .formEl.fieldtype-input input[type="text"], #ic_signupform .elcontainer .formEl.fieldtype-dropdown select, #ic_signupform .elcontainer .formEl.fieldtype-radio label, #ic_signupform .elcontainer .formEl.fieldtype-checkbox label { font-size: 100%; } #ic_signupform .elcontainer .formEl input[type="text"]::-moz-placeholder { color: #bdbdbf; font-family: inherit; } #ic_signupform .elcontainer .formEl input[type="text"]::-webkit-input-placeholder { color: #bdbdbf; font-family: inherit; } #ic_signupform .elcontainer .formEl input[type="text"]:-ms-input-placeholder { color: #bdbdbf; font-family: inherit; } #ic_signupform .elcontainer .formEl input[type="text"], #ic_signupform .elcontainer .formEl select, #ic_signupform .elcontainer .formEl .option-container label { color: #000000; font-family: inherit; } #ic_signupform .elcontainer.inline-button .submit-container { display: inline-block; box-sizing: border-box; right: -.5em; padding: 0 1em 0 0; position: relative; vertical-align: bottom; margin-bottom: 1em; } #ic_signupform .elcontainer.inline-button.tight .sortables { margin-bottom: -.5em; } #ic_signupform .elcontainer.inline-button .sortables { margin-bottom: -1em; } #ic_signupform .elcontainer.inline-button.generous .sortables { margin-bottom: -1.5em; } #ic_signupform .elcontainer .submit-container { text-align: center; } #ic_signupform .elcontainer .submit-container input[type="submit"] { background: #ffffff; border: 1px solid #666666; border-radius: 0px; line-height: 1em; padding: 9px 53px; color: #666666; font-size: 100%; font-family: inherit; width: auto; }</style> <form id="ic_signupform" captcha-key="6Leg3ykTAAAAAOl-32RMwHSsbwyZA5j84VGnmfnV" captcha-theme="light" method="POST" action="https://app.icontact.com/icp/core/mycontacts/signup/designer/form/?id=102&cid=871932&lid=7416"><div class="elcontainer tight inline-label-right left-aligned inline-button"><div class="form-header"><h3>Form Heading</h3></div><div class="sortables"><div class="formEl fieldtype-input" style="display: inline-block; width: 100%;" data-validation-type="1" data-label="First Name"><label>First Name<span class="indicator required">*</span></label><input placeholder="" name="data[fname]" type="text"></div><div class="formEl fieldtype-input required" style="display: inline-block; width: 100%;" data-validation-type="1" data-label="Email"><label>Email<span class="indicator required">*</span></label><input placeholder="" name="data" type="text"></div><div class="formEl fieldtype-checkbox required" dataname="listGroups" style="display: none; width: 100%;" data-validation-type="1" data-label="Lists"><h3>Lists<span class="indicator required">*</span></h3><div class="option-container"><label class="checkbox"><input alt="" name="data[listGroups][]" value="44525" checked="checked" type="checkbox">My-dogtrainingsecrets.com</label></div></div><div class="submit-container"><input value="Submit" class="btn btn-submit" type="submit"></div></div><div class="hidden-container"></div></div></form><img src="//app.icontact.com/icp/core/signup/tracking.gif?id=102&cid=871932&lid=7416"/> The page can be viewed at http://www.my-dogtrainingsecrets.com I really am lost as HTML is not my forte so I could do with some help to understand and implement . Look forward to hearing from someone soon. Thanks J Morris UK.
  2. Thanks for the reply. I'll give it a go and see if it works. regards John M.
  3. Hi all. I have a sticky one here as I am having problems with a paypal button which is in the wrong place and I can't move it. Firstly, I am trying to manipulate the code inside an editor on a hosting account. I have N-Vue on my PC but don't know weather I want to go about downloading the code to my editor via FileZilla or not. If I can do it where it is I'd prefer. Anyway. The page looks like this: http://thekitchentablemillionaire.co.uk//index.html As you can see, if you scroll down to the middle of the page there is a picture of a product set with a paypal button to the lower left of it. I want to move the button to be directly under the picture. The current code looks like this: style="text-align: center;" align="center"><font color="#000000"><font style="font-size: 14pt;" size="4"><font color="#000000"><a text-align="" left="" align="left"><font color="#000000"><br> </font></a><font color="#000000"><b><font style="font-size: 20pt;" size="10" color="#0000ff">"The kitchen Table Millionaire" <p style="text-align: center;" align="center"><font color="#000000"><img style="border: 1px solid rgb(0, 0, 0); width: 188px; height: 162px;" alt="The Kitchen Table Millionaire" src=http://thekitchentablemillionaire.co.uk/Images/Kitchen%20Table%20productimage.jpg align="middle" border="0" height="152" hspace="0" width="178"></a></font></font></font></p><P><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="QGF5P9TN7L74U"><input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_paynowCC_LG.gif" border="0" align=Center" name="submit" alt="PayPal – The safer, easier way to pay online."><img alt="" border="0" align="Center" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" align="absolute Center"></form></p>What I can't understand is the "align" commands are all "centre" or absolute centre so why is the button only showing to the left of the page and how do I code to move it? I'm not fluent in HTML but can follow instructions. If someone can help??? Thanks John M.
  4. Hi. If you just click on the links in the above message you get to the pages I am trying to explain about. The url was correct when I pasted it in, you don't think I wrote it in long hand?I've just tried by clicking on both lonks and I can get to the pages just fine.Hope you can too.RegardsJ.M.
  5. Hi all. I'm still trying to make sense of a problem I have with a web page which does not function as it should. It is a squeeze page and should be linked to an auto responder.The auto responder package is not held on the same server as the squeeze page but I uploaded some files into the same folder to give the 'look' of the page, which was successful and, I thought, the function.To illustrate.This is the page in question.http://www.canwork-fromhome.com/Cash-inIn the header there is a line that mentions source= function.js, or something similar. So, I copied to the holding folder the function.js file, thinking it would work but it does not. I believe there must be more going on that I thought.Now, if you visit;http://www.yourfuture2012.co.uk/future/register.php?list_id=3this is the original page which I copied over. This one is held on the same server as the whole auto responder package, and it works as it should.So, my problem is, do I try and find out if the function.js file is actually linked to more files in the auto responder package, copy them over to my holding folder and see if that works or could there be some way to link the page in the 1st url above with the second so I have the look and the functionality that I am striving to achieve.You'll have to go to each page and use so you can see what I mean.Hope someone can make sense of this.ThanksJ.M.
  6. Hi again. I need a little help as I did as instructed in recent posts in this string but the web page does not function. I added the function.js file to the folder index_files and have checked the code in the page against the code in the original page this one is supposed to mirror. The code is exactly the same but still the page function is not active. It's supposed to do something after you enter your name and email etc but I get no response.Is there something else I need to consider, something else I need to add or implement that will make this function as it should.The original page is on my PC at home and the original files for the auto responder are on a remote server so I would not imagine this is a distance thing, maybe something in the code points to a problem I'm not aware of.Please help as I just don't know what is wrong.ThanksJ.M.
  7. Ok Thanks. I'll do again and see what my results are.Great help.J.M.
  8. Would that be similar to link to the functions.js?I tried the code you suggested above and the page still looks the same, no color or design. This is really awkward.If you want to get into the page held on the server to see what is really going on let me know.ThanksJ.M.
  9. Hi again. I did as suggested and made the folder, added the files to it and I still get the white page with black test and no functionality.It's as though the code on the page is still looking for the code in it's original place rather than the code in the folder in it's new location.The original page was generated from a package which has a numerous amount of files and folders, all contained with the index, I think it would be difficult to copy the right files to make this work properly as I don't altogether know which files are connected to which. There is a mix of PHP, HTML and CSS and it does work but it seems the page code is not easily transportable, somehow.Not sure how to approach this further.Any suggestions?ThanksJ.M.
  10. OK, Thanks. Now I think it through, it makes sense.I''l give it a try and see how it goes.J.M.
  11. Hi. I'm just looking for clarification on something.I have a page which I uploaded to a folder on a server. The page has associated with it a style sheet (CSS) and other files. Currently I believe the code in the page is looking for the associated items in the wrong place as it is coded thus:<link href="index_files/style.css" rel="stylesheet" type="text/css"><script src="index_files/functions.js" language="javascript"></script>the folder these items are now placed in is a totally different place than the addresses aboveas they are in www.canwork-fromhome.com/Cash-in (the 'Cash-in' part is the holding folder)I have the style sheet and the functions.js in the same folder but the index page does notfind them addressed in the current way.I'm not sure how to write the address in after the"href=" to allow the code in the index page to find the code in the style sheet and fuctions.jsCan anyone point me in the right direction?ThanksJohn M.
  12. Hi all. I have a problem with a squeeze page. If you take a look at the attached file you'll see what my page looks like on my PC. It's a mixture of HTML,PHP and a style sheet.I wanted to upload it to a hosting account I have (not push button) to be an addition to a website which I need to develop further, based on wordpress.Now, I thought that if I uploaded the page as index.html, along with the html,php and style sheet the page would look as it does onmy pc.Not a bit of it, take a look:http://www.canwork-fromhome.com/Cash-inWhat you see there is just a whilte page with black text. I tried to see if it works but it has lost all it's functionality as well, if you add your details into the fields and press the button nothing happens.So, I'm stuck as I just don't know what to do next.Does anyone have an idea how to solve this problem??Hope you can helpThanksJohn. Squeeze page look.pdf
  13. I have just managed to alter some of the visual effects on the page via the style sheet contained in the files of this auto responder package. I have changed the font size etc by editing the details between the <h1> and </h1> tags (also the <h2></h2> but I can't seem to be able to change the color. I have done as I did before oin my test page but it won't take it. I also am not sure about getting the border effect as on my test page. It seems the way the pages are put together is a mixture of php/css/style sheet and html. Very complicated. Whoever wrote this has a very comprehensive understanding of coding and building websites.I know I'm probably back tracking a bit but now we seem to be working on a style sheet external to the page to be styled, it's slightly different to working on the page with css.Any suggestions?ThanksJohn.
  14. What I don't understand clearly is this "autostyle=" as this crops up in different places. The style sheet that seems to drive the look of all the pages seen in the sequence starts with a,a:visited{. Looking at it is un familiar territory to me as I'm not sure which bits to change to get the pages to look as I want. I could do with a few pointers, if anyone can take the time to give me an idea.Sorry if I seem dim (just don't understand coding so much)John.
  15. Oh, if you really did want the php code, look here:<?php//authorisation block$logged=$_SESSION[newsadmin];if(!$logged&∅($_POST['enter'])){ require_once($path.'templates/a_login.html'); exit;}if(!$logged and !empty($_POST[enter])){ //log admin $q="SELECT id FROM $T_SETTINGS WHERE name='adminpass' AND value='$_POST[password]'"; $valid=$DB->oq($q); if(!$valid) { msg_die("Wrong admin password"); } else { $_SESSION[newsadmin]=$valid; $logged=$_SESSION[newsadmin]; }}//end authorization block?>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('lib/user.php');session_cache_limiter('none');session_start();require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');require_once('a_authorize.php');// end includes$_GET['action']=!empty($_GET['action'])?$_GET['action']:"main";if(!is_file("modules/a_$_GET[action].php")){ msg_die("Wrong input parameter");}require("modules/a_$_GET[action].php");require_once('templates/a_master.html');?>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');require_once('models/basic.php');require_once('models/list.php');// end includes//see if valid user$q="SELECT * FROM $T_USERS WHERE id='$_GET[id]' AND code=\"$_GET \"";$member=$DB->sq($q);if($member['id']){ $q="UPDATE $T_USERS SET active=1 WHERE id='$member[id]'"; $DB->q($q); $_list=new MailList(); $_list->notify($member['list_id'], $member); send_immediate_mails($member['id']); $mainmsg="Thank you!"; $msg="Your account is now confirmed,You are now being re-directed"; }else{ $mainmsg="Error!"; $msg="The link appears to be invalid";}$template="templates/message.html";require_once('templates/master.html');?><meta http-equiv="refresh" content=" 5;url=http://www.thecompetitive-edge.co.uk"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><style type="text/css">.auto-style1 { text-align: center;}.auto-style2 { font-family: Arial, Helvetica, sans-serif; font-size: x-large;}.auto-style3 { font-family: Arial, Helvetica, sans-serif; font-size: large;}.auto-style8 { font-family: Arial, Helvetica, sans-serif; font-size: xx-large; color: #808080;}.auto-style9 { font-family: Arial, Helvetica, sans-serif; font-size: xx-large; color: #4B4444;}.auto-style10 { font-family: Arial, Helvetica, sans-serif; font-size: large; color: #4B4444;}</style></head><body><table align="center" style="width: 700px"> <tr><td class="auto-style1"><strong><span class="auto-style9">Thank you,You are now being re-directed.</span><span class="auto-style8"> <br /> </span><span class="auto-style3"><em><br /> <br /> </em></span> <img height="21" src="ProgressBar.gif" width="417" /><br /> <br /> <span class="auto-style10"><em>(please wait while page loads...)</em></span><br /> <br class="auto-style2" /> <span class="auto-style3"><em><br /> </em></span></strong></td> </tr></table></body></html>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');require_once('models/basic.php');require_once('models/list.php');// end includes$q="SELECT value FROM $T_SETTINGSWHERE name='register'";$register=$DB->oq($q);$optin=get_setting("optin");// select custom fields if any$q="SELECT * FROM $T_FIELDS WHERE list_id='$_GET[list_id]'ORDER BY id";$efields=$DB->aq($q);if(!empty($_POST[ok])){ //duplicate email? $q="SELECT id FROM $T_USERS WHERE email=\"$_POST[email]\" AND list_id='$_GET[list_id]'"; $exists=$DB->oq($q); if($exists) { msg_die("This email is already registered in the system."); } $active=$optin?0:1; // people often enter names in stupid ways. This will make them better $_POST['name']=prepare_name($_POST['name']); $q="INSERT INTO $T_USERS (name,email,active,list_id,date) VALUES (\"$_POST[name]\",\"$_POST[email]\",'$active','$_GET[list_id]',CURDATE())"; $DB->q($q); $mid=$DB->lid(); // add extra fields foreach($efields as $field) { $q="INSERT INTO $T_DATAS (field_id,user_id,data, list_id) VALUES ('$field[id]','$mid',\"".$_POST["field_".$field['id']]."\",'$_GET[list_id]')"; $DB->q($q); } $mainmsg="Thank you"; $msg="You have been signed up in our system."; if($optin) { //generate code $code=substr(md5($_POST[email].time()),0,8); //update member $q="UPDATE $T_USERS SET code=\"$code\" WHERE id='$mid'"; $DB->q($q); $msg.="However confirmation of your email address is required. Please check your email and click on the link in it to confirm your address"; $subject="Please confirm your email for ".get_setting("site"); $message="Please click on the link below to confirm your email address:<a href=\"".SITE_URL."confirm.php?id=$mid&code=$code\">".SITE_URL."confirm.php?id=$mid&code=$code</a>"; send_mail(get_setting("sender"),$_POST[email],$subject,$message); } else { $_list=new MailList(); $_list->notify($_GET['list_id'], array("email"=>$_POST['email'], "name"=>$_POST['name'])); send_immediate_mails($mid); } $template="templates/message.html";}else{ $template="templates/register.html";}require_once('templates/master.html');?>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');// end includes################# SEND NEWSLETTER MAILS ####################//select mails per run$q="SELECT value FROM $T_SETTINGS WHERE name='mph'";$mph=$DB->oq($q);$mph=$mph?$mph:100;//select mails$q="SELECT * FROM $T_SMAILS WHERE receiver!='' ORDER BY id LIMIT $mph";$mails=$DB->aq($q);foreach($mails as $mail){ // echo $mail[receiver]."<br>"; send_mail($mail[sender],$mail[receiver],$mail[subject],$mail[message],$mail[mailtype]); $q="DELETE FROM $T_SMAILS WHERE id='$mail[id]'"; $DB->q($q);}################# SEND AUTORESONDER MAILS ####################// first select fixed dates mails for today$q="SELECT tM.days as days, tR.list_id as list, tM.id as id, tM.date as date, tM.subject as subject, tM.message as message,tR.sender as sender, tM.responder_id as responder_idFROM $T_MAILS tM, $T_RESPONDERS tRWHERE tM.responder_id=tR.id AND tR.artype='Fixed dates'AND tM.date=CURDATE()";$mails=$DB->aq($q);foreach($mails as $mail){ //select receivers $q="SELECT tU.email as email, tU.id as id, tU.name as name FROM $T_USERS tU, $T_RESPONDERS tR WHERE tU.list_id=tR.list_id AND tR.id=$mail[responder_id] AND tU.active=1"; $receivers=$DB->aq($q); //customize and send ar_customize($mail,$receivers); }// now select all sequential mails no matter the date they have to be sent at$q="SELECT tM.id as id, tM.subject as subject, tM.message as message, tM.days as days, tM.then_do as then_do, tR.id as rid, tR.list_id as list_id,tR.sender as senderFROM $T_MAILS tM, $T_RESPONDERS tRWHERE tM.responder_id=tR.id AND tR.artype!='Fixed dates'ORDER BY tM.id";$mails=$DB->aq($q);$ar_offsets=array(); // keep the day offset for each autoresponderforeach($mails as $mail){ // calculate offset $off=$mail["days"]; // select receivers $q="SELECT * FROM $T_USERS WHERE list_id='$mail[list_id]' AND date=CURDATE() - INTERVAL $off DAY AND active=1 ORDER BY id"; $receivers=$DB->aq($q); ar_customize($mail,$receivers); // update offset - no longer used #$ar_offsets[$mail[rid]]+=$mail[days];}?>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');// end includes//update openings$q="UPDATE $T_SMAILS SET`read`=`read`+1WHERE id='$_GET[id]'";$DB->q($q);?>Last;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('lib/user.php');session_cache_limiter('none');session_start();require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');// end includesif(!empty($_POST[ok])){ $q="DELETE FROM $T_USERS WHERE email=\"$_POST[email]\""; $DB->q($q); $mainmsg="Thank you"; $msg="You have been unsubscribed"; $template="templates/message.html";}else{ $template="templates/unsubscribe.html";}require_once('templates/master.html');?>That's all the PHP for all the pages in this package.John.
  16. Hi Guys. It seems like I have been barking up the wrong tree, somewhat as there is a style sheet that is associated with the page which is the code above. I had to think hard as I have had it stored on a server for a long time and forgot I had it!The style sheet is associated with all the pages that come with the auto responder but it seems to be categorized into different sections. The code is here:a, a:visited { background: #F0F8FF; color: #FFF00; font-weight: bold; text-decoration: none; font-size12px;}a:hover, a:active { background: #E0FFFF; color: #3366CC; text-decoration: underline;}body { border: 0px font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12pt; margin: 0px; padding: 12px; }h1 { font-size: 1.2em;}h1, h2 { background-color: #9ACD32; font-family: Arial, Helvetica, sans-serif; font-weight: bold;}h2 { font-size: 4em;}h3 { background-color: #00ffff; font-family: Arial, Helvetica, sans-serif; font-size: 10em; font-weight: bold;}li { vertical-align: text-top;}td { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;}th{ background:#87CEEB; color:light green; padding:4px; font-weight:bold;}label{ width:150px; display:block; float:left;}.ajax{ display:none; position:absolute; border:1px solid Yello; background:BLUE; padding:5px;}Oh, and if I could give myself a week to go through the PHP tutorial on here and play with the details I would know whatPHP is, to date I don't have the timeas I work a lot of hours and usually am too tired to learn complicated stuff so I do what I can when I have the time.If the above style sheet can be manipulated to give a page look that I want without destroying any important parts ofthe page functions (which I suspect it can) thenPlease point me in the right direction and I'll do the rest. The "a:visit" and "a:hover" bits are a little confusing as they do not seem to tie up with the page titles I have.ThanksJohn.
  17. OK. Sorry I've been away. I have found, through research, the code on a page which works so I guess it will contain the php code your looking for?See below;<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head> <style><endnote><head><style><endnote><head><style></style> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Internet propulsion</title> <link href="register.php_files/style.css" rel="stylesheet" type="text/css"> <script src="register.php_files/functions.js" language="javascript"></script> <style type="text/css"><style>div{Border:15px double;Border-syle:double;border-radius:10px;border-color:#006600;} </style></head><body><div id="_GPL_e6a00_parent_div" style="position: absolute; width: 1px; height: 1px; z-index: 2147483647; top: 7px; left: 3px;"><object data="register.php_files/storage.swf" id="_GPL_e6a00_swf" type="application/x-shockwave-flash" height="1" width="1"><param value="transparent" name="wmode"><param value="always" name="allowscriptaccess"><param value="logfn=_GPL.items.e6a00.log&onload=_GPL.items.e6a00.onload&onerror=_GPL.items.e6a00.onerror&LSOName=gpl" name="flashvars"></object></div><table align="center" cellpadding="7"> <tbody> <tr> <td colspan="2"> <h1 align="center"><b>InternetPropulsion</b></h1> <hr></td> </tr> <tr> <td height="380" valign="top" width="780"> <script language="javascript">function validateForm(frm){var name=frm.name.value;var email=frm.email.value;if(name==''){alert("Please enter name");return false;}if(!checkMail(email)){return false;}frm.submit(); } </script> <h2 align="center">Fillthe form to sign up</h2> <form method="post" action="http://www.yourfuture2012.co.uk/future/register.php?list_id=3"> <table align="center" cellpadding="10"> <tbody> <tr> <th colspan="2">Pleasefill the form below:</th> </tr> <tr> <td width="100">YourName:</td> <td width="300"><input name="name" size="30" type="text"></td> </tr> <tr> <td width="100">YourEmail:</td> <td width="300"><input name="email" size="30" type="text"></td> </tr> <tr> <td colspan="2" align="center"><input name="ok" value="1" type="hidden"> <input value="Sign Up" onclick="javascript:validateForm(this.form);" type="button"></td> </tr> </tbody> </table> </form> </td> </tr> <tr> <td colspan="2"> <hr> <h1 align="center"><b>Thanksfor Visiting</b></h1> </td> </tr> </tbody></table></body></html>I hope this is what you were asking for.Anyway, if it is, I'd like to know how to somehow knit this together this page code with the style sheet to make it look like I have been trying to get a page to look since the start. I tried to change the code on my test page and the green box around the form and it's green border disappeared and left just the outer border with the sign up form in a plain middle, not what I was expecting.Hope you can advise.ThanksJohn
  18. Ok so how do I validate the code? I have tried to look at the code on my page and compare it to what is on the base page it was built on (as the code above) and it looks the same but for the <form method="post" id="myunique_signup_form" action="http://www.yourfuture2012.co.uk/future/register.php?list_id=3">In the original form the "id="myunique_signup_form" is not there and it works. However, if I try and move this bit of code out of the above it destroys the green box and the inner border which is the signup form so it looks plain and not what I was striving for.So I'm confused and wish I understood what is going wrong.All I know is the form does not behave as it should, this is a bigger job for me that I first anticipated.HmmmmmmmmmmmmmmmmmmmHope you can help.John.
  19. Hi. I'm not sure what you're saying but I sort of get it.below is the code which is in the page generated by my system, if this was on a site it would work:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Internet propulsion</title><link href="style.css" rel="stylesheet" type="text/css"><script src=lib/functions.js language=javascript></script></head><body><table align=center cellpadding=7><tr><td colspan=2><h1 align=center><<b>Internet Propulsion</B>></h1><hr></td></tr><td width=780 height=380 valign=top> <script language=javascript>function validateForm(frm){ var name=frm.name.value; var email=frm.email.value; if(name=='') { alert("Please enter name"); return false; } if(!checkMail(email)) { return false; } frm.submit(); }</script><h2 align="center">Fill the form to sign up</h2><form method="post" action="http://www.yourfuture2012.co.uk/future/register.php?list_id=3"><table align=center cellpadding=10><tr><th colspan=2>Please fill the form below:</th></tr><tr><td width=100>Your Name:</td><td width=300><input type=text name=name size=30></td></tr><tr><td width=100>Your Email:</td><td width=300><input type=text name=email size=30></td></tr><tr><td colspan=2 align=center><input type=hidden name=ok value=1><input type=button value="Sign Up" onclick="javascript:validateForm(this.form);"></td></tr></table></form></td></tr><tr><td colspan=2><hr><h1 align=center><<b> Thanks for Visiting</b>></h1></td></tr></table></body></html>The blue link, I believe, is the key but it, on it's own, would not work, I suspectThere is already a database and an auto responder with loaded messages waiting to be connected but, somehow, the page I'm working on does not send the details to the database and the re direct does not work as you are not sent anywhere once you click the button. This is something I find hard to get my head around, for some reason. This is why I'm asking for help.ThanksJohn.
  20. The one thing I seem to be missing is why the form does not work. It seems, in it's current state the details are not sent to the datebase (I get an email every time someone is added) and the re direct does not work as you are not sent on to a new page once you click the button.Is it something to do with the following (at least partly)<inputname="listid" value="44525" type="hidden"><inputname="specialid:44525" value="CUIP" type="hidden"><inputname="clientid" value="871932" type="hidden"><inputname="formid" value="3813" type="hidden"></td>I think this is copied from my other form which is linked to I contact by mistake? I just want to have the details sent to my auto responder database, via:<form method="post"id="myunique_signup_form"action="http://www.yourfuture2012.co.uk/future/register.php?list_id=3">(does the "id= etc being there stop the form working properly because it's between "post" and action=, like sort of breaking the html code somehow so it can't function?And, once you've clicked on the button you are sent to another page via:<input name="redirect"value="http://www.canwork-fromhome.com/" type="hidden"><inputname="errorredirect" value="http://www.canwork-fromhome.com/"type="hidden">Is this all that is needed to make the re direct work?If someone could help me it'd be great.ThanksJohn.
  21. Hi ShadowMage. The purpose of the data is to:1, add the details to a database, and2, have the auto responder send out a series of messages promoting a product associated with the website it's attached to (in this case work from home or have your own on line business)Once on the data base I can send out messages and small newsletters etc and maybe get them to subscribe to other things in the future, once developed.Simple as that.John.
  22. Oops, sorry. I forgot to post the new code here!!!I'm such a numpty at times. Must have been tired when I last posted a comment on this forum.Code here;<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Internet Marketing MadeEasy</title> <style type="text/css">#myunique_signup_form {border:5px double #99CC00;border-radius:15px}#myunique_signup_form table {border:2px solid black;background-color:#669900;border-radius:25px;}#myunique_signup_form body {border:5px double green;}myunique_signup_form td{color-#669900}h1{color:#3300FF}#signup_body{border:10px double #006600;border padding:10px;border width:full;Border height:full;border radius:50px;} </style></head><body><div id="signup_body"><h1 style="" font="Arial" align="center"><b>Findingit Hard to Make a Living On Line?</b></h1><hr><script language="javascript">function validateForm(frm){var name=frm.name.value;var email=frm.email.value;if(name==''){alert("Please enter name");return false;}if(!checkMail(email)){return false;}frm.submit();}</script><h2 font="Arial" align="center">"Learnhow to take the internet by storm in less time then you thoughtpossible"<p></p>Yes, even if you'venever made a penny on line, you too can master the secrets to onlineWealth</h2><p class="double" color="green"></p><form method="post" id="myunique_signup_form" action="http://www.yourfuture2012.co.uk/future/register.php?list_id=3"> <table align="center" cellpadding="10"> <tbody> <tr> <th colspan="2">Pleasefill the form below:</th> </tr> <tr> <td width="100">YourName:</td> <td width="300"><input name="name" size="30" type="text"></td> </tr> <tr> <td width="100">YourEmail:</td> <td width="300"><input name="email" size="30" type="text"></td> </tr> <tr> <td colspan="2" align="center"><input name="ok" value="1" type="hidden"> <input value="Sign Up" onclick="javascript:validateForm(this.form);" type="button"> <input name="redirect" value="http://www.canwork-fromhome.com/" type="hidden"><input name="errorredirect" value="http://www.canwork-fromhome.com/" type="hidden"><input name="listid" value="44525" type="hidden"><input name="specialid:44525" value="CUIP" type="hidden"><input name="clientid" value="871932" type="hidden"><input name="formid" value="3813" type="hidden"></td> </tr> </tbody> </table></form><hr><h1 font="Verdana" align="center"><b>"YourFortune Awaits"</b></h1></div></body></html>Now. I can't get the form to work. I uploaded it to the correct directory in C Panel but when I check on line and add the necessary details nothing happens. This was added at an earlier post:To submit the form to a new page, just set the action attribute of the form to the URL of the new page. In order to really do anything with the data you submit, though, you'll need to use a server side language like PHP to process it. The auto responder I am using that is linked to this form (or should be) uses PHP so there is no problem there. I need to understand the bit about the action attribute of the form and setting it to the URL of the new page. Currently, the code above has the URL of the main site this page should be linked to (it's in it's own directory), I want to add a thank you page in between so I'd have to upload the thank you page (into a new directory??) and see what the URL is of that page, add the code to the capture form code as above, then it should work?If you could point me in the right direction please.ThanksJohn.
  23. You know. I could bang my head against a wall!! It's really that simple and I did it and it works (well...of course it does)Now all I have to do is add the code to send the person to another page after clicking the button.Does the code from name=redirect etc loo correct to you?I believe it's correct as I have similar code in a capture form and it works fine.Thanks for the help. I've learned a lot!RegardsJohn.
  24. One thing that just occurred to me. Am I attacking this from the wrong angle?? What if I cut and paste all the body content and placed inside the 'div' box that is on the page. Would this expand the box to have all the body text, signup form etc inside the border or would it just screw up all the page so I have to start from scratch?This may be something which we have not thought about?Not sure about this at all.Can some one advise please?ThanksJohn.
  25. I just did a little experiment (I'm trying to edit using NVU, by the way) the 'Div' I created as described above has made the box separate from the main body. If I add a dimension to the Div property it just makes the border box bigger and moves all the body content down the page under the bottom border of the box.Not what I'm after.There is a separate box which you can edit attributes using NVU and that allows the dimensions to be added to the div field. If I click on the body tab it doesn't seem to allow me any ability to add dimensions etc. Not much help in trying to get the border to be all around the page and not just at the top as I see in the form right nowSo frustrating!
×
×
  • Create New...