www.webdeveloper.com

Search:

Type: Posts; User: Vectorman211

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    4,264

    Lat/Long Distance Calculator

    Thought some of you might be interested in this. I wrote this a while back for a dating website. It calculates the distance in miles between 2 lat/long coordinates, I.E. from a zipcode database.

    ...
  2. Replies
    11
    Views
    1,116

    You should include additional headers to prevent...

    You should include additional headers to prevent the messages from being filtered by many spam filters.

    Here's an example of my mailer function:


    function...
  3. Replies
    11
    Views
    1,426

    I still have no idea what you're trying to do lol...

    I still have no idea what you're trying to do lol but I'm glad you got it :D Probably would have made more sense if I saw all the code ;P
  4. Replies
    11
    Views
    1,426

    I see i see. That's a problem because you have no...

    I see i see. That's a problem because you have no way to index the variable from the post array. Is this like a bunch of checkboxes that are enumerated? If so I would do like this:



    //FORM:...
  5. Replies
    3
    Views
    778

    Yeah... I'm like freaked out man!

    Yeah... I'm like freaked out man!
  6. Replies
    11
    Views
    1,460

    This script was obviously never tested on other...

    This script was obviously never tested on other PHP installs, he assumed register globals was on. The problem was also that he left out where you declare required fields in the configuration. But he...
  7. Replies
    11
    Views
    1,460

    Yes all you'd have to do is create the HTML form...

    Yes all you'd have to do is create the HTML form to submit to this script using the field names name,email,subject,body.

    EDIT:
    I wrote this up quickly, note that there is no error checking, so...
  8. My pleasure :D

    My pleasure :D
  9. Replies
    4
    Views
    875

    This is my index.php

    This is my index.php



    <?
    //--Start PHP SESSION
    session_start();

    //--Load global configuration.
    require_once("include/config.php");
  10. Replies
    10
    Views
    782

    may want to do: preg_split("/ +/",$text);...

    may want to do:



    preg_split("/ +/",$text);


    Instead which will match any number of spaces (just in case).
  11. Replies
    11
    Views
    1,426

    Looks like he's trying to concatenate a variable...

    Looks like he's trying to concatenate a variable name which I call "variable variables".

    You do it like this:


    print ${$_POST[$row['Link_num']].'_checkbox'};
  12. the array should be a session variable as well....

    the array should be a session variable as well. otherwise you lose it when the script execution ends.



    if (count($_SESSION['MyArray']) >= 4){
    unset($_SESSION['MyArray']);
    ...
  13. Replies
    11
    Views
    1,460

    Try this: $name=trim($_POST['name']);...

    Try this:



    $name=trim($_POST['name']);
    $email=trim($_POST['email']);
    $subject=trim($_POST['subject']);
    $body=trim($_POST['body');

    send_email("Sender <sender@domain.com>","$name...
  14. It's as simple as this: ...

    It's as simple as this:



    $MyArray[]=$_SESSION['InitialImage'];


    array_push() essentially does the same thing, this is a shortcut.
  15. You mean: if (count($ar) >= 4){ ...

    You mean:



    if (count($ar) >= 4){
    unset($ar);
    $ar=array();
    }
  16. What do you mean by "reset"? the reset() function...

    What do you mean by "reset"? the reset() function simply returns the array pointer to the first index. Please explain in more detail.
  17. Replies
    4
    Views
    875

    Why not just use variables? Here's an example of...

    Why not just use variables? Here's an example of how I template.

    Logic code:


    <?
    $submit_page="/module/manager/adduser-submit.html";
    $nav[]=array("Add User Account","");

    switch($argv[1]){
  18. Replies
    4
    Views
    708

    It wouldn't hurt to simply include the class file...

    It wouldn't hurt to simply include the class file from the start. Be sure to use the include_once() or require_once() function so you don't get any conflicts if it's included elsewhere. Creating an...
  19. Replies
    15
    Views
    1,553

    Also, those are notices not fatal errors. They...

    Also, those are notices not fatal errors. They can be ignored for the most part. It's just telling you that you don't have those variables predefined somewhere.
  20. Replies
    15
    Views
    1,553

    Missing open { bracket. $msg_pass="";...

    Missing open { bracket.


    $msg_pass="";
    $msg_user="";
    include("dbconnect.php");
    if($_POST['login']){
    $username=trim($_POST['username']);
    $password=trim($_POST['password']);
    if($username &&...
  21. Replies
    16
    Views
    2,108

    Good to hear, sorry I didn't have time to tackle...

    Good to hear, sorry I didn't have time to tackle that one, I was just about to but I'm glad you got it fixed :D
  22. Replies
    40
    Views
    3,620

    It's good to eliminate the possibility of it...

    It's good to eliminate the possibility of it being a server side problem first, then look at graphic load times. It's usually graphic or css problem that slows down page load times.
  23. Replies
    15
    Views
    1,553

    I think this could be your problem. ...

    I think this could be your problem.

    $ushapass=sha1($password,TRUE);
    $data=mysqli_fetch_assoc($rs);
    $data=mysqli_fetch_assoc($rs);
    if($data['password']==$shapass)

    you have a "u" infront of...
  24. Replies
    9
    Views
    1,103

    A pleasure.

    A pleasure.
  25. Replies
    9
    Views
    1,103

    Not to mention your / directory would have to be...

    Not to mention your / directory would have to be world writeable! XD You could do /users/unique_user01 instead and make the /users directory 0777.
Results 1 to 25 of 73
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles