SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Help...

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    Singapore
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help...

    How to solve for this one:

    $date = "$row4->id";
    $attended = $_POST['date$date'];

    I cant get the dates that r being posted.... I wan it to be like
    $_POST['date1'], $_POST['date2'], blah blah blah.... id is number.... Thanx in advance...

  2. #2
    SitePoint Guru
    Join Date
    Jul 2004
    Location
    Raleigh, NC
    Posts
    783
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try
    $attended = $_POST["date$date"];

    or better:
    $post_date_key = 'date' . $date;
    $attended = $_POST[$post_date_key];


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •