Jump to content

Faliol

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Faliol

  1. Hello,

     

    I have installed Expression Engine and I am using the gallery module it has. And it's not finding the folder I created for the image. I have the directory called art in my images folder.

     

    It's asking for a server path in the content panel preference....so I might have that wrong.

     

    I have /home/my_cpanel_username/public_html/art/ in that setting.... would that be correct? I know we are supposed to put out cpanl user name in there. It keeps on saying "The specified path does not exist" but the folder is definitely there with the permission set to 777.

     

    Kevin

  2. Thanks guys

     

    Glassgorilla, I pasted your code in but I'm getting a parse error at line 45.

     

    You know the problem?

     

    ><?php
    $page_title = 'EB Erotic | Contact';
    
    include ('templates/header.inc');
    ?>
    <h1>Contact</h1>
    </div>
    
    <div class="Article">
     <div id="top-cap"><img src="/images/top_cap.gif" alt="" /></div>
    
     <div id="wrapper">
    <div id="menu">
    <?php
    include ('templates/navigation.inc');
    ?>
    </div>
    
    <div id="content">
    
    <?php
    if (isset($_POST['submit'])) { // Handle the form.
    
    
    $name2 = $_POST['name'];
    $email2 = $_POST['email'];
    $subject2 = $_POST['subject'];
    $comments2 = $_POST['comments'];
    
    
    
    
    // Check for a name.
    if (strlen($_POST['name']) > 0) {
     $name = TRUE;
    } else {
     $name = FALSE;
     echo '<p>You forgot to enter your name!</p>';
    }
    
    // Check for an email address.
    if (strlen($_POST['email']) > 0) {
     $email = TRUE;
    } else {
     $email = FALSE;
     echo '<p>You forgot to enter your email address!</p>';
    }
    
    // Check for a username.
    if (strlen($_POST['subject']) > 0) {
     $subject = TRUE;
    } else {
     $subject = FALSE;
     echo '<p>You forgot to enter your user name!</p>';
    }
    
    // Check for a username.
    if (strlen($_POST['comments']) > 0) {
     $comments = TRUE;
    } else {
     $comments = FALSE;
     echo '<p>You forgot to enter your comments!</p>';
    }
    
    
    if ($name && $email && $subject && $comments) { // If everything's okay.
    // Register the user.
    $youremail = "kevin@lectric.com";
    $subjectline = "New Comments from $name2";
    $letter = "User $name2 sent you these comments:\n\n$subject2\n\n$comments2";
    $headers = "From:  $name2 <$email2>\n";
    
    if(mail($youremail, $subjectline, $letter, $headers)){
    echo '<p>Thanks You for your email. I will reply as soon as possible.</p>';  
    } else {
    echo '<p>There was an error sending the email.</p>';  
    }
    } else { // Something's not TRUE.
    echo '<p>Please go back and try again.</p>';  
    }
    
    ?>
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
    <legend>Enter your information in the form below:</legend>
    
    <p><b>Name:</b> <input type="text" name="name" size="20" maxlength="40" /></p>
    
    <p><b>Email Address:</b> <input type="text" name="email" size="25" maxlength="60" /> </p>
    
    <p><b>Subject:</b> 
     <input type="text" name="subject" size="20" maxlength="40" /></p>
    
    <p><b>Comments:</b> 
     <textarea name="comments" cols="60" rows="10"></textarea>
    </p>
    
    <div align="center"><input type="submit" name="submit" value="Submit Information" /></div>
    
    </form><!-- End of Form -->
    <?php
    } // End of mian Submit conditional.
    
    ?></div>
    
    
    <div style="clear: both;"> </div>
    <div id="bootom_cap"><img src="/images/bottom_cap.gif" /></div> 
     </div>
     
    </div>
    
    <?php
    include ('templates/footer.inc'); // Include the HTML footer.
    ?>

  3. Thanks man, it's almost there. I'm getting the email now, but the contents are not showing right.

     

    I added this to where you said I should add it:

     

    $youremail = "kevin@lectric.com";

    $subject = "New Comments from $name";

    $comments = "$name sent you these comments:\n\n$comments";

    $headers = "From: †$name <$email>\n";

    mail($youremail, $subject, $comments, $headers);

     

    The email I got is like this

     

    Email came from  1 <1@server45.totalchoicehosting.com>

    Subject: New Comments from 1

    and the body of the email is :

     

    1 sent you these comments:

     

    1

     

    I entered Test in every field except I entered my email in the email field.

     

    Know the problem of why it's doing this?

  4. Hi I'm working on a form where when the user hits the submit button it submits the info to my email address so i can access their info. I created the php and form code but do not know how to make send email to me when it submits. Can anyone help? I think it has something to do with the mail () function or phi.ini, but not sure. I do not see the php.ini

     

    Here's the page in question

    http://www.eberotic.com/contact.php

     

    And here's the PHP and html source code:

     

    Thanks in advance

     

    ><?php
    $page_title = 'EB Erotic | Contact';
    
    include ('templates/header.inc');
    ?>
    <h1>Contact</h1>
    </div>
    
    <div class="Article">
     <div id="top-cap"><img src="/images/top_cap.gif" alt="" /></div>
    
     <div id="wrapper">
    <div id="menu">
    <?php
    include ('templates/navigation.inc');
    ?>
    </div>
    
    <div id="content">
    
    <?php
    if (isset($_POST['submit'])) { // Handle the form.
    
    // Check for a name.
    if (strlen($_POST['name']) > 0) {
     $name = TRUE;
    } else {
     $name = FALSE;
     echo '<p>You forgot to enter your name!</p>';
    }
    
    // Check for an email address.
    if (strlen($_POST['email']) > 0) {
     $email = TRUE;
    } else {
     $email = FALSE;
     echo '<p>You forgot to enter your email address!</p>';
    }
    
    // Check for a username.
    if (strlen($_POST['subject']) > 0) {
     $subject = TRUE;
    } else {
     $subject = FALSE;
     echo '<p>You forgot to enter your user name!</p>';
    }
    
    // Check for a username.
    if (strlen($_POST['comments']) > 0) {
     $comments = TRUE;
    } else {
     $comments = FALSE;
     echo '<p>You forgot to enter your comments!</p>';
    }
    
    if ($name && $email && $subject && $comments) { // If everything's okay.
     // Register the user.
     echo '<p>Thanks You for your email. I will reply as soon as possible.</p>';  
    } else { // Something's not TRUE.
     echo '<p>Please go back and try again.</p>';  
    }
    
    } else { // Display the form.
    
    ?>
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
    <legend>Enter your information in the form below:</legend>
    
    <p><b>Name:</b> <input type="text" name="name" size="20" maxlength="40" /></p>
    
    <p><b>Email Address:</b> <input type="text" name="email" size="25" maxlength="60" /> </p>
    
    <p><b>Subject:</b> 
     <input type="text" name="subject" size="20" maxlength="40" /></p>
    
    <p><b>Comments:</b> 
     <textarea name="comments" cols="60" rows="10"></textarea>
    </p>
    
    <div align="center"><input type="submit" name="submit" value="Submit Information" /></div>
    
    </form><!-- End of Form -->
    <?php
    } // End of mian Submit conditional.
    
    ?></div>
    
    
    <div style="clear: both;"> </div>
    <div id="bootom_cap"><img src="/images/bottom_cap.gif" /></div> 
     </div>
     
    </div>
    
    <?php
    include ('templates/footer.inc'); // Include the HTML footer.
    ?>

  5. Hello,

     

    How do you prevent search engines from crawling certain parts of your site? For example we are a web design company. If we set up a test server on a subdomain called like Acorn (the address would be acorn.******) how would you prevent this so outside people can't view the test site? If I recall you have to use a robot text file.

     

    Thanks

×
×
  • Create New...