
TheScripter
Members-
Posts
29 -
Joined
-
Last visited
Profile Information
-
Gender
Not Telling
TheScripter's Achievements

Newbie (1/5)
0
Reputation
-
New Domain, IRUrsum.com
-
Thanks ya'll! I changed it up a bit with heavy influence from "kjetterman". It looks much better, but isn't it a little dull? Do I need more content?
-
Alright, its good in all major browsers. IE will just have to survive without rounded corners and some less-than-perfect shadows. Anything else?
-
By the way...something all of us failed to realize? EVERYTHING is messed up in IE, damn that god forsaken program.
-
Tried adding... text-outline: 2px #000066; to accommodate you but no love for me. Nothing happened. *EDIT* Just looked, not supported in any major browsers so that is out of the picture. Damn you W3School! Should have read your signature. Haha
-
Actually I am simply creating them like this... .heading { color: e8c062; font-size: x-large; font-family: "Lucida Bright", Georgia, serif; text-shadow: black 0.1em 0.1em 0.2em } Then applying .heading class to that paragraph tag.
-
A dark stroke? You mean like the text shadow I have around them?
-
Come on, there can't be a lack of people with bad things to say on the internet. Haha
-
My apologies. I would think that because of the dramatic change in content and layout, not to mention the significant change in time would define this as a new topic.
-
I am on it right now. Should work fine, it is an external server so me accessing it should be the same as you accessing it.
-
Any other ideas?
-
Thanks for the reply! If you go back to my site, you can see I changed the color of the titles to a dark gold, bolded all the links, changed their hover color to a dark blue, and had them underlined on hover. I also changed the format of the about, news, and donate pages so that the content was one wide column rather than 2 smaller ones and organized some content into paragraphs.
-
Coding is my bowl of cherries, Java, PHP, HTML, CSS, Perl, C sharp, what have you! The designing thing however, that is most definitely not. I would really like to keep this design and not have to scrap it, but where do I make improvements? Every time I go there, it screams amateur. Obviously not a good first impression. Ideas? Things to study? Anything? Thanks guys. http://independentrepublicofursum.tk/
-
http://independentrepublicofursum.tk/Become_a_Citizen/ is the page I am having trouble on. Basically what I want to happen here is for the user to download a fillable pdf application, fill it, and upload it. From there the php script will send it to my email so I can review it. My code is... function mail_file($to, $from, $subject, $body, $file) { $boundary = md5(rand()); $header = array( "MIME-Version: 1.0", "Content-Type: multipart/mixed; boundary=\"{$boundary}\"", "From: {$from}" ); $message = array( "--{$boundary}", "Content-Type: text/plain", "Content-Transfer-Encoding: 7bit", '', chunk_split($body), "--{$Boundary}", "Content-Type: {$file['type']}; name=\"{$file['name']}\"", "Content-Disposition: attachment; filename=\"{$file['name']}\"", "Content-Transfer-Encoding: base64", '', chunk_split(base64_encode(file_get_contents($file['tmp_name']))), "--{$boundary}--" ); mail($to, $subject, implode("\r\n", $message), implode("\r\n", $headers)); } Then to send it I use... if (isset($_FILES['file'])) { mail_file('[email protected]', '[email protected]', 'test subject', '', $_FILES['file']); } My form is... <form name="citizenship_application" action="" method="post" enctype="multipart/form-data"> First Name: <input type="text" name="first_name" value="<?php echo $first_name_value; ?>"> <br /> <br /> Last Name: <input type="text" name="last_name" value="<?php echo $last_name_value; ?>"> <br /> <br /> E-Mail:       <input type="text" name="e_mail" value="<?php echo $e_mail_value; ?>"> <br /> <br /> Gender:       <input type="radio" name="sex" value="male" <?php echo $male_pre_select; ?> >Male <input type="radio" name="sex" value="female" <?php echo $female_pre_select; ?> >Female <br /> <br /> <label for="file">Please specify your application file:</label> <br /> <input type="hidden" name="MAX_FILE_SIZE" value="501"> <input type="file" name="file" size="50"> <br /> <br /> <input type="submit" value="Submit Application" name="submit">  <?php echo $error; ?> </form> I get two errors, the first one is... Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/u418744221/public_html/Become_a_Citizen/index.php on line 38 Line 38 is... chunk_split(base64_encode(file_get_contents($file['tmp_name']))), My second error is... Warning: implode() [function.implode]: Invalid arguments passed in /home/u418744221/public_html/Become_a_Citizen/index.php on line 43 line 43 is... mail($to, $subject, implode("\r\n", $message), implode("\r\n", $headers)); Really need this finished, ASAP. I can't figure it out, any help appreciated thanks ya'll.
- 1 reply
-
- attachment
-
(and 3 more)
Tagged with:
-
How To Send An E-Mail With An Attachment?
TheScripter replied to TheScripter's topic in PHP Coding Help
Well I want to do it with just normal php. Anyone have a snippet they can explain to me?