Jump to content

Adding a border to my web page


Jonnym53

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

you have to add the start tag<div id="signup_body"> At the top of content you wish to surround, and its closing tag </div>, at the bottom of the content you want to surround, at the moment its surrounding nada, so what you are getting is a border surrounding absolutely nothing at the top, if you give this element height, it will just be a empty space to the height you specified pushing the content below it down.

Edited by dsonesuk
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

There's nothing wrong with submitting the form to itself. You can put a conditional in your code to see if data was submitted. If it has process it, otherwise show the form. The real question is what do you intend to do with the data once you submit it? Are you storing it in a database or file? Are you sending an email to the user? What is your purpose?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

You need the values of the form on submission, to go to php page, that connects to mysql database table, where these values will be inserted into, since i have not seen any php code/page provided that preforms this, i assumed you already had this up and working, else you should read the tutorial on connecting and inserting values into a database. http://w3schools.com/php/php_mysql_insert.asp

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

there's probably some validation issue with that code, lots of unquoted attribute values. aside from that, if the backend isn't working, you've been prompted for the info needed to address that already...

You need the values of the form on submission, to go to php page, that connects to mysql database table, where these values will be inserted into, since i have not seen any php code/page provided that preforms this, i assumed you already had this up and working, else you should read the tutorial on connecting and inserting values into a database. http://w3schools.com...ysql_insert.asp
The HTML has nothing to do with interaction with the database or sending emails. And the only redirecting it can do is through the use of links. In order to know why it isn't working, we need to see the PHP code.
I would suggest validating your code, make sure that your HTML is correct, and then make another thread to address the actual issues you are having with the form and the backend, since you're now diverging way off topic to your OP.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Once again, the HTML does not matter. Its the PHP code that's causing the problems (ie, the code in register.php). If you don't know what PHP is, start with the tutorial. I'm not walking you through this one because it's a little more...involved...than putting a border on a form... Oh, and to validate your code you can use the W3C validator:http://validator.w3.org/

Edited by ShadowMage
Link to comment
Share on other sites

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

Link to comment
Share on other sites

There still isn't any PHP code. We need to see the code in the file located here: http://www.yourfutur...re/register.phpThat's the file that processes the form submission (notice that's the location specified in the action attribute of your form) and should be the file that inserts the data into your database and redirects the user. EDIT:Is it possible to post a URL without it turning into a link?

Edited by ShadowMage
Link to comment
Share on other sites

do you know what PHP is? If you can't identify it, I would recommend reading the tutorials, since it is inhibiting your ability to get help since you can't provide the basic resources for us to help you. At a minimum though, you've been told which file you need to provide, so I'm not really sure why it's hard to provide this code... and really.. you should start a new thread. not only is it a different topic now, but it's nature belongs in a completely different sub-forum.

Edited by thescientist
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

Hi Jonnym53! your first code is this <head><style type="text/css">p.one.all_sides{border-style:solid;border-color:green;} just replace this line into body p.one.all_sides{border-style:solid;border-color:green;} so this will be the outcome body{border-style:solid;border-color:green;}

Edited by henryc01
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...