Forums

Everything is working... except

Woof 09 May, 2008
Just discover this GREAT component. Read the forum, the FAQ, saw and read the tutorials, read the forum again, but I do have a small problem...here is my situation. (Sorry I'm not technical)
[list]
  • using Joomla!1.5.2

  • form/Chrono is sending email fine

  • form/Chrono is working with Anti Spam and validation

  • form/Chrono is using calendar correctly (from reading the great posts in this forum)
  • [/list]
    My little problems is my thank you page and I have read the FAQ, but could not find a solution.

    In my form I have:
    <input type="reset" class="button" value="Click here"  
    onclick="return showCalendar('arrival_date', 'mm-dd-y');" />
    <input type="text" size="20" maxlength="150" name="arrival_date[]" id="arrival_date" value="<?php echo $_POST['arrival_date']; ?>">


    In my Thank you page where I show the result of the online form (On Submit code - after sending email) I have:
    <?php echo $_POST['arrival_date[]']; ?>


    The problem is that it does not show the date choosen by the calendar. All the other fields entered (including a textarea) are showing great in the Thank you page, except the dates...

    Any help would greatly be appreciated.

    Woof
    (sorry for my english)
    GreyHead 09 May, 2008
    Hi woof,

    I apologise, Max upgraded the forums because there were some serious problems with the old version (it took the site down) and we find that the updated version can't display code properly. We're looking for the fix.

    Meanwhile . . .

    It looks like the arrival date is being returned as an array. Turn DeBug on to see what is in the $_POST array - my guess is that you'll find something like
    [arrival_date] => Array ( [0] => dd [1] => mm [2] => yyyy )
    in which case you'll need to stitch the parts back together
    <?php
    echo $_POST['arrival_date'][0] ."-". $_POST['arrival_date'][1] ."-". $_POST['arrival_date'][1]; 
    ?>
    Bob
    Woof 09 May, 2008
    Hi Bob,
    Thank you SO MUCH for looking into this so quickly... when do you ever take a rest?

    I tried your suggestion (did turn on the debug) and saw [arrival_date] => Array ( [0] => 05-09-2008), but being not technical, I nevertheless tried your solution but after the date it gave me 2 --.
    So I simply tried echo $_POST['arrival_date'][0] and voila! It worked like a charm.

    I also wanted to say something: with your test_form-or any other forms- (where I learned and test a lot) whenever I turn on Validation, the form is sending and working properly, but in IE6 I could see an error in the status bar, and using ja_purity template, the top horizontal sub-menu were not showing (sliding down). Not a big deal, but just wanted to let you know.

    This is a GREAT tool!
    Thank you very much again for such a fast response.

    Woof
    This topic is locked and no more replies can be posted.

    VPS & Email Hosting 20% discount
    hostinger