kurazi's Profile
Reputation: 0
Apprentice
- Group:
- Members
- Active Posts:
- 34 (0.04 per day)
- Joined:
- 27-March 11
- Profile Views:
- 921
- Last Active:
Jun 18 2012 08:00 PM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Extra Spacing In Div
Posted 4 Apr 2012
disregard. I figured out if I put a "clear" before the first 2 floats, it works!
<br class="clear" />
<div id="contact_left">
<img src="images/jasmyn_20sm.jpg" alt="Coldwell Banker" width="176" height="244" class="fltlft" />
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed consectetur molestie risus. Etiam sodales commodo ante id dapibus. </p>
</div> <div id="contact_right">
<table width="100%" border="0">
<tr>
<td valign="top"><div align="right" class="title">Address:</div></td>
<td> </td>
<td class="italic">Coldwell Banker Peter Benninger Realty</td>
</tr>
</table>
</div> -
In Topic: Extra Spacing In Div
Posted 4 Apr 2012
I cleaned up to the code to make it easier to read and changed a few things. It still shows up the same. Here is just the relevant code
<div id="mid_bar"> <div id="contact_left"> <img src="images/jasmyn_20sm.jpg" alt="Coldwell Banker" width="176" height="244" class="fltlft" /> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed consectetur molestie risus. Etiam sodales commodo ante id dapibus. </p> </div> <div id="contact_right"> <table width="100%" border="0"> <tr> <td valign="top"><div align="right" class="title">Address:</div></td> <td> </td> <td class="italic">Coldwell Banker Peter Benninger Realty</td> </tr> </table> </div> <br class="clear" /> </div>
#mid_bar { width: 857px; background-image: url(../images/mid.png); padding-left: 25px; padding-right: 18px; position: relative; color: #333; } #contact_left { width: 56%; float: left; background-image: url(../images/divide.png); background-repeat: repeat-y; background-position: top right; padding-right: 2%; display: inline; } #contact_right { width: 42%; float: right; } .clear { clear:both; } -
In Topic: 2 divs side by side not floating
Posted 12 Nov 2011
Fixed it. I took the sidebar out of the div and just put one under another and it worked! thanks for your help! -
In Topic: 2 divs side by side not floating
Posted 12 Nov 2011
its strange.. i tried that as well last night and it still didnt work. It still seems to push the sidebar down to the bottom right under the left main div. I wonder if maybe I need a clear somewhere.
Here is my code as of now.
<div id="left_main"> texttextetext <div id="sidebar"> <table style="height: 74px;" width="288" background="images/top_bar.png"> <tbody> <tr> <td><img style="float: left; border: 0;" src="images/twitterlogo.jpg" height="64" width="97" align="left" border="0" /><br /> <h3> TWEETS</h3></td> </tr> </tbody> </table> <div id="tweetFeed"> <script type="text/javascript"><!-- $(document).ready(function(){ $('#tweetFeed').jTweetsAnywhere({ username: 'Sports_connect_', count: 3, showTweetFeed: { showProfileImages: true, paging: {mode: "prev-next"}, autorefresh: {interval: 300} }, showTweetBox: {label: '<span style="color: #D1C7BA" mce_style="color: #D1C7BA">Spread the word ...</span>'}, }); }); // --></script> </div><!-- tweetFeed --> </div> <!-- sidebar --> </div><!-- left_main -->
body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, blockquote { margin: 0; padding: 0; border: 0; } #page_wrap { background-image: url(../images/main.jpg); overflow: auto; } #top_nav { height: 50px; background-color: #202020; border-bottom: 3px solid white; } #nav { width: 900px; margin-right: auto; margin-left: auto; height: 47px; text-decoration: none; padding-left: 10px; } #nav ul { list-style: none; } #nav ul li { float: left; padding-right: 40px; text-align: center; padding-top: 15px; } #nav ul li a, #nav ul li a:visited { color: #FFF; text-decoration: none; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; } #nav ul li a:hover, #nav ul li a:focus { color: #D29964; text-decoration: underline; } #nav ul li a:active { color: #734E34; text-decoration: underline; } #social { width: 150px; float: right; padding-top: 5px; } #main_container { width: 900px; border: 3px solid white; margin: 15px auto 0 auto; background-image: url(../images/bg.png); height: auto; overflow-y: hidden ! important; overflow-x: auto ! important; } #header { height: 250px; border-bottom-width: 3px; border-bottom-style: solid; border-bottom-color: #FFF; background-image: url(../images/header2.jpg); } #main { color: white; margin: 30px 10px 10px 10px; font-family: Tahoma, Geneva, sans-serif; font-size: 90%; position: relative; } #main h2 { font-size:140%; color: #D29964; } #main a, #main a:visited { color: #FFF; text-decoration: none; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; } #main a:hover, #main a:focus { color: #D29964; text-decoration: underline; } #main a:active { color: #734E34; text-decoration: underline; font-style: normal; overflow: auto; } #left_main { padding-top: 10px; font-size: 110%; color: white; position: absolute; margin-right: 350px; } #left_main ul { padding-left: 30px; } #left_main h3 { color: #D29964; font-size: 110%; } #left_main h4 { color: white; font-size: 110%; } #sidebar { width:288px; color: #D29964; font-weight: bold; font-size: 70%; text-align: left; color: #D29964; float: right; margin-right: -300px; position: absolute; } #sidebar h3{ text-align: center; padding-right: 100px; color: #FFF; } #sidebar a, #sidebar a:visited { color: #D29964; text-decoration: none; font-family: Tahoma, Geneva, sans-serif; font-size: 105%; padding-top: 10px; } #sidebar a:hover, #sidebar a:focus { color: #D29964; text-decoration: underline; } #footer { height: 30px; color: white; margin: 30px 10px 10px 10px; font-family: Tahoma, Geneva, sans-serif; text-align: center; font-size: 70%; clear: both; } #footer a, #footer a:visited { color: #FFF; text-decoration: none; font-family: Tahoma, Geneva, sans-serif; font-size: 105%; padding-top: 10px; } #footer a:hover, #footer a:focus { color: #D29964; text-decoration: underline; } -
In Topic: Include image in PHP email form
Posted 7 Nov 2011
ok, so good news! i found a script that sends an email from a page onload, and I was able to get it to send me an email with a picture from my server with no problem. From there, I tried to incorporate it into my form, but the image fails to come with the email message. I do still get the email, with the text, but i also get a few other lines of code, and then a page full of rambled text like this:
Content-Type: image/jpg; name="hand.jpg"
Content-Transfer-Encoding: base64
Content-disposition: attachment; file="hand.jpg"
/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAUAAA/+4ADkFkb2JlAGTAAAAAAf/b
AIQAAgICAgICAgICAgMCAgIDBAMCAgMEBQQEBAQEBQYFBQUFBQUGBgcHCAcHBgkJCgoJCQwMDAwM
DAwMDAwMDAwMDAEDAwMFBAUJBgYJDQsJCw0PDg4ODg8PDAwMDAwPDwwMDAwMDA8MDAwMDAwMDAwM
DAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAuwFSAwERAAIRAQMRAf/EALwAAAEEAwEBAQAAAAAAAAAA
Maybe someone can spot something I am missing. Here is the code for the onload php page that is working by sending an email to my email address with a image from my server
<body> <?PHP $to = 'contact@domain.ca'; $subject = 'PHP Mail Attachment Test'; $bound_text = "jimmyP123"; $bound = "--".$bound_text."\r\n"; $bound_last = "--".$bound_text."--\r\n"; $headers = "From: admin@server.com\r\n"; $headers .= "MIME-Version: 1.0\r\n" ."Content-Type: multipart/mixed; boundary=\"$bound_text\""; $message .= "If you can see this MIME than your client doesn't accept MIME types!\r\n" .$bound; $message .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n" ."Content-Transfer-Encoding: 7bit\r\n\r\n" .$bound; $file = file_get_contents("http://www.domain.ca/new/images/hand.jpg"); $message .= "Content-Type: image/jpg; name=\"hand.jpg\"\r\n" ."Content-Transfer-Encoding: base64\r\n" ."Content-disposition: attachment; file=\"hand.jpg\"\r\n" ."\r\n" .chunk_split(base64_encode($file)) .$bound_last; if(mail($to, $subject, $message, $headers)) { echo 'MAIL SENT'; } else { echo 'MAIL FAILED'; } ?>
And here is my page that I tried to incorporate with it.
<?php error_reporting(0); $recipient = 'contact@domain.ca'; $subject = "Cancellation Request Form from Website"; $ndate = stripslashes($_POST['ndate']); $brokerage = stripslashes($_POST['brokerage']); $rjfccon = stripslashes($_POST['rjfccon']); $insured = stripslashes($_POST['insured']); $polnum = stripslashes($_POST['polnum']); $brokername = stripslashes($_POST['brokername']); $pnum = stripslashes($_POST['pnum']); $email = stripslashes($_POST['email']); $cancel = stripslashes($_POST['cancel']); $bound_text = "jimmyP123"; $bound = "--".$bound_text."\r\n"; $bound_last = "--".$bound_text."--\r\n"; $headers .= "MIME-Version: 1.0\r\n" ."Content-Type: multipart/mixed; boundary=\"$bound_text\""; $headers = "From: $email\r\n\r\n"; $message .= "If you can see this MIME than your client doesn't accept MIME types!\r\n" .$bound; $message .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n" ."Content-Transfer-Encoding: 7bit\r\n\r\n" .$bound; $message = "Notice Date: $ndate\r Brokerage: $brokerage\r RJFC Contact Number: $rjfccon\r Insured: $insured\r Policy Number: $polnum\r Broker Name: $brokername\r Phone Number: $pnum\r Email: $email\r Reason for cancellation: $cancel\r"; $file = file_get_contents("http://www.domain.ca/new/images/hand.jpg"); $message .= "Content-Type: image/jpg; name=\"hand.jpg\"\r\n" ."Content-Transfer-Encoding: base64\r\n" ."Content-disposition: attachment; file=\"hand.jpg\"\r\n" ."\r\n" .chunk_split(base64_encode($file)) .$bound_last; if (!mail($recipient, $subject, $message, $headers)) { echo "Message failed to send"; } else { echo nl2br ("<center><br><br><br><br><br><br><br><br><br><br>Thank you. Your request has been sent. A representative from RJFC will contact you shortly.<br><br><br><br><br><br><br><br><br><br></center>"); } ?>
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Click here to e-mail me
Friends
kurazi hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
kurazi has no profile comments yet. Why not say hello?