Jump to content

TheScripter

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by TheScripter

  1. 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

  2. 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.

  3. 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('myemail@gmail.com', 'ContactUs@independentrepublicofursum.tk', '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:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="e_mail" value="<?php echo $e_mail_value; ?>">
    
    <br />
    <br />
    
    Gender:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<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"> &nbsp<?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/B­ecome_a_Citizen/index.php on line 38

     

    Line 38 is...

     

    chunk_split(base64_encode(fil­e_get_contents($file['tmp_name­']))),

     

    My second error is...

     

     

    Warning: implode() [function.implode]: Invalid arguments passed in /home/u418744221/public_html/B­ecome_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.

  4. Alright so I have use the PHP mail() function pretty extensively, however for my new site I will need to collect a filled fillable pdf file downloaded from my site, pull it from the files array, then send it to my e-mail so I can look at it later. I can do all of it except attach the .pdf file. How would I go about this? Please don't give me complete code because that is too easy. :) I wan't to figure it out myself but the tutorials simply don't explain what is happening.

  5. I think you underestimate the use of empty space a little. Look at Google for instance. The links are clearly pointed out and I intended for them to melt into the text. I thought the layout was pretty good, other than suffering from a lack of content. I thought I would need a couple pictures. The facebook thing is just ridiculous. Its perfectly acceptable to put my feed into the side. Its a great way to show whats going on somewhere else without leaving the page in my opinion. The fact that you had nothing positive to say, I would almost say you were what they call a "troll".

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.