UnknownPlayer
Members-
Posts
269 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
UnknownPlayer's Achievements
Regular Member (3/5)
0
Reputation
-
Hi, can someone give me some example of using history.js to work with html5 and html4, i cant find good tutorial for that ?
-
This is my code: <?php $name = $_POST['name']; $email = $_POST['email']; $years = $_POST['years']; $birthdate = $_POST['birthdate']; $applydate = date('Y-m-d'); $subject = "Birthday Surprise"; $headers = "From: birthday@example" . "\r\n"; $headers .= "Reply-To: birthday@example" . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $message = ' <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> body{ margin:auto; font-family:"HelveticaNeue-Roman"; font-weight:normal; font-size:16px; background:#ccc; } @font-face{ font-family:"Helvetica Neue Bold"; src:url("'.SITE_URL.'fonts/HelveticaBold.ttf"); } @font-face{ font-family:"HelveticaNeue-Roman"; src:url("'.SITE_URL.'fonts/HelveticaBold.ttf"); } @font-face{ font-family:"Helvetica Neue Light"; src:url("'.SITE_URL.'fonts/HelveticaLight.ttf"); } #wrapper{ width:520px; height:auto; margin:20px auto 0 auto; padding:0; background:#FFF; border-top:solid 5px #F00; border-bottom:solid 5px #F00; } #one{ height:180px; border-left:solid 5px #F00; border-right:solid 5px #F00; padding:10px 0; } #two{ border-left:solid 5px #F00; border-right:solid 5px #F00; padding:10px 0; } #logo{ width:113px; height:48px; background:url('.SITE_URL.'images/logo.gif); margin:auto; } #txt{ color:#F00; text-align:center; margin:10px; padding:0; font-family: } #txt p{ font-size:22px; font-weight:bold; margin:0; font-family:"HelveticaNeue-Roman"; } #txt h1{ text-align:center; font-size:24px; text-transform:uppercase; font-weight:bold; margin:5px 0 0 0; } #txt h2{ text-align:center; font-size:32px; text-transform:uppercase; font-weight:bold; margin:5px; } #pic{ width:169px; height:28px; background:url('.SITE_URL.'images/txt_11.png); margin:15px auto; } #pic1{ width:520px; height:216px; background:url('.SITE_URL.'images/img5.jpg); margin:auto; } #pic2{ width:317px; height:440px; background:url('.SITE_URL.'images/txt_7.png); margin:auto; } #footer{ height:50px; background:#FFF; clear:both; } #footer_logo{ width:165px; height:33px; background:url('.SITE_URL.'images/logo2.png); margin:10px auto 0 auto; } </style> </head> <body> <div id="wrapper"> <div id="one"> <div id="logo"></div> <div id="txt"> <p>Hope to see you for your '.$years.' th</p> <div id="pic"></div> </div> </div> <div id="pic1"></div> <div id="two"> <div id="pic2"></div> <div id="footer"> <div id="footer_logo"></div> </div> </div> </div> </div> </body> </html> '; mail($email, $subject, $message, $headers); ?> Can you help me please?
-
I have a problem, i have page to send via mail function, cant snd html page, when recive mail, there is no layout, but text is there, also there are no images, and i put full address to image file. Using content type html/text, and still nothing :-( Can someone help me?
-
Thanks.
-
I saw that <?=$var?> instead of <?php echo $var; ?> can be used for echo, does it work on every server?
-
After login check statement in db, this is code for redirect: if (!empty($_POST['ref'])) { if (preg_match(SITE_URL, $_POST['ref'])) { redirect_to($_POST['ref']); // this is function with header("Location: {$value}") and exit; } else { redirect_to(SITE_URL."moj-kabinet"); } } But problem is that that input hidden field is with address that show user profile page, not that from send PM page ? Do i need to put include header before check_login(); function ?
-
Hi, i need help with refferer redirect after login. Example: - i am on user profile page (not required to be logged in) - when i click send PM (it goes to that address and that page check if user is logged in, if not it redirect user to login page) now in input hidden value(login page), where i save referrer url, there is not address of send PM link, but link from users profile page, i dont know why ? And after i login it redirect me to profile page not to send PM page. This is that send PM page: <?php include("includes/connection.php"); ?> <?php include("includes/functions.php"); ?> <?php check_login(); ?> <?php include("includes/header.php"); ?> . . . . . Login input hidden field: <input type="hidden" name="ref" value="<?php echo (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : ''; ?>" /> Why it doesnt redirect me to send PM page after login ?
-
magic_quotes need to be disabled ? I use stripslashes(), is that correct way too ?
-
Hi, i use mysql_real_escape_string() function when insert in db, but when echo i use htmlentities($var, ENT_QUOTES, "UTF-8") Now problem is '\ in that text. In db it write text with single quote with \, example That\'s wrong, and when echo it show just the same like in db.. How can i fix this ?
-
Hi, i use strip_tags() function, but it removes string like <3, what can i use to allow this, but to disable real html tags ?
-
Thanks, it works very well.. But 1 question, do i need to put return; ?
-
Hi, i have problem with urls like www.example.com/?p=23 This is my htaccess code: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?p=([0-9]+)$ post.php?pid=$1 [L] RewriteRule ^all/$ all.php [L] RewriteRule ^popular/$ popular.php [L] RewriteRule ^recent/$ recent.php [L] RewriteRule ^random/$ random.php [L] RewriteRule ^search/$ search.php [L] Now this code: RewriteRule ^/?p=([0-9]+)$ post.php?pid=$1 [L] doesn't work, it shows me home page.. how can i make that to work ?
-
Hi, i dont know what is framework, for what is it using for ? I write my scripts in php, but im confused about frameworks..
-
You are here to help. Anyway, you didnt ask anything, i dont see queston mark on end, so.. Server version: 5.0.91-log I saw on web that innodb is slow, but i need it for this key.
-
If i have large db, with lots of datas ? Is there other solution for this, foreign key ?