Jump to content

Brian W

Members
  • Posts

    867
  • Joined

  • Last visited

Posts posted by Brian W

  1. use this instead, its cleaner and likely will fix your problem...

    // Let's mail the user!
        $mail = "email@address.com>\r\n";
        $subject = "Quote: Web Design - $domain";
        $message = "Name: $fullname
    Company Name: $company
    E-mail: $email
    Phone: $phone
    Quote Type: $quotetype
    Domain Name: $domain
    Desired Pages: $pages
    Organization: $comments_organization
    Competitors: $comments_competitors
    Appealing Sites: $comments_appeal
    Status: $comments_status
    Do: $comments_do   
    Comments: $comments";
    $header  = "From: $fullname<$email>\r\n";
    $header .= "X-Mailer: PHP/" . phpversion();
        mail($mail, $subject, $message, $header);
        echo "Confirmed email sent";

  2. URL string variables are accessible through $_GET, not $_POST...

    $question = $_GET['question'];
    $firstname = $_GET['name_first'];
    $email = $_GET['email'];

    use this to find out the array keys to use in a very readable fashion:

    <?php
    die("<pre>".print_r($_GET, TRUE)."</pre>");
    ?>
    

  3. Something like:

    if(!isset($_SESSION['unique'])){
    $unique=rand(10000,99999);
    $_SESSION['unique'] = $unique;
    } else {
    $unique = $_SESSION['unique']++;//increment by one 
    }
    

     

    But I think I'm really lost as to what you plan on doing here.

    If you need to keep track of data someone filled out, you don't want to increment because then how are you supposed to pull their info again?

  4. <?php
    include 'dbconn.php';    
    
    $result = mysql_query("SELECT * FROM picks WHERE expiredate = CURDATE() AND CURTIME() < expiretime AND starttime < CURTIME()" ,$conn);
    $showResults = true;
    if(!mysql_num_rows($result)) {
            unset($result);
       // there are no matches
       echo  "<div align=\"center\">There is no pick available at this time ".$edate."</div>";
       // run a second query
       $result = mysql_query("SELECT * FROM picks WHERE expiredate > CURDATE() ORDER BY expiredate ASC LIMIT 1",$conn);
       // check results
       if(!mysql_num_rows($result)) {
          $showResults = false;
       }
       
    }
    
    
    // display the results from either the first or second query
    if($showResults) {
       while ($row = mysql_fetch_assoc($result)){
    $pick = $row['pick'];
    $event = $row['event'];
    $starttime = $row['starttime'];
    $endtime = $row['expiretime'];
    $enddate = $row['expiredate']; 
    $etime = ( date("g:i a", strtotime($endtime)) );
    $stime = ( date("g:i a", strtotime($starttime)) );
    $edate = ( date("m/d/Y", strtotime($enddate)) );
       }
    }
    ?>

    ???

  5. well, as long as what we gave you helped... I guess it works. But if your outputting the selection with php, wouldn't it be easier/more logical to simply not output the other radio boxes if they don't have options?

    If you want to present to the user that there is sometimes options, but not in this case, you can disable the options.

    One:<input type="radio" name="Radio" value="1" id="Radio1"><br>
    Two:<input type="radio" name="Radio" value="2" id="Radio1" disabled><br>
    Three:<input type="radio" name="Radio" value="3" id="Radio1" disabled>

  6. why do you need it be invisible?

    <input type="radio" name="Radio" value="1" id="Radio1" style="display:none;">

    to undo the hide:

    <a href="javascript:void();" onClick="document.getElementById('Radio1').style.display='';">Show</a>

  7. Something like this

    <?php
    $to = "johndoe@thesite.com";
    $subject = "Hello";
    $body = "<span style=\"font-size:12pt\">HI!</span>";
    $headers = "MIME-Version: 1.0\n";
    $headers .= "Content-type: text/html; charset=utf-8\n";
    $headers .= "From: Your Pal <yourname@yoursite.com>\n";
    if(!mail($to, $subject, $body, $headers)){ die("Error sending message"); }
    

    The header Content-type specifies to use html. Some tags aren't supported, but they are far and few so no worries there. No JS and I don't believe CSS is supported usually.

  8. Theory, 'hint' isn't the name of the field... idk, maybe way off. (remember, if its 'Hint', 'hint' wont work)

    while($b3 = mysql_fetch_array($w3)){
                                             die(nl2br(print_r($b3, TRUE)));//This will kill the application and feed out the variables, copy and paste the output into a reply.
                               $id = $b3['id'];
                               $end = date("Y-m-d h:i:s", strtotime($b3['exp']));
                               $id = $b3['id'];
                               $name = $b3['name'];
                               $package = $b3['package'];
                               $start = date("Y-m-d h:i:s");         
                               $hint = $b3['hint'];               
                               $price = $b3['price'];
                            }

  9. "thispage.html" won't work,  "thispage.php" assuming your server supports php.

    Secondly, I'm going to venture a guess you asked this somewhere else and they suggested php but you aren't familiar with php at all. right?

    If so, consider paying someone to do it or starting by reading some tutorials for beginners. Most of the members of this website have recommended reading material.

  10. Free application development for non-profit organizations including simple websites and even complex, database driven websites. 3 tier applications accepted. I'm interested primarily in ground up development, but I will consider doing repairs and expansion to already existing applications.

    I'm also available other freelance work, inquire for rates.

  11. If I raise the font size, wouldn't you agree the image would likely need to have a larger width to compensate? What do you think the max width should be to be comfortable on most forum signatures?

     

    On a previous version I had some examples, there was an overwhelming response that it was not web 2.0, too cluttered. I do agree, when I have it pulled up on my coding system at home (about 29 inch LCD monitor), things get a little spread out...

     

    Why not hybrid? Sorry, I'm not really on top of current industry standard per se.

     

    Added label tag, not sure what they do besides allow for users to select fields by clicking on the adjacent text.

     

    wouldn't it be easier to use a single table for the tabular data?

    Are you talking about the results from the query?

×
×
  • 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.