ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Everything is working... except (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Everything is working... except
#8170
Woof (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Everything is working... except 4 Days, 13 Hours ago Karma: 0  
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)

  • 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)

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:
Code:

<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:
Code:

<?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)
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/09 17:16 By Woof. Reason: The code is not showing, but if you reply to this post, you\'ll see the code.
  The administrator has disabled public write access.
#8178
GreyHead (Admin)
Admin
Posts: 2155
graph
User Online Now Click here to see the profile of this user
Re:Everything is working... except 4 Days, 12 Hours ago Karma: 44  
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
Code:

[arrival_date] => Array ( [0] => dd [1] => mm [2] => yyyy )
in which case you'll need to stitch the parts back together
Code:

<?php echo $_POST['arrival_date'][0] ."-". $_POST['arrival_date'][1] ."-". $_POST['arrival_date'][1]; ?>
Bob
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/10 06:32 By GreyHead. Reason: Cleaning code tags and entities
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8183
Woof (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Everything is working... except 4 Days, 10 Hours ago Karma: 0  
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
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/09 19:44 By Woof.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials