ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:State/Province dropdown (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:State/Province dropdown
#8413
kai920 (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Re:State/Province dropdown 2 Months ago Karma: 0  
hmm nothing happens! The form becomes blank when I paste the above code in.

That's why I thought something was wrong with it...

I tried to turn on debugging in Chronoforms - but don't see any debugging info.

Oh, I should mention I am using J!1.5.x - is that why I am getting a blank form?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8421
GreyHead (Admin)
Support
Admin
Posts: 2905
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:State/Province dropdown 2 Months ago Karma: 62  
Hi Kai920,

Missed one, you've got confused quoted around size - should be 'size="1"' I also got a PHP notice about an undefined index. Modified code is
Code:

<?php $Category = Array( 'Audio' => 'Audio', 'Blog' => 'Blog' ); $options = array(); if ( !isset($_POST['category']) ) { $_POST['category'] = ""; } foreach ( $Category as $cat => $category ) { $options[] = mosHTML::makeOption($cat, $category); } $select = mosHTML::selectList($options, 'category[]', 'size="1"', 'value', 'text', $_POST['category']); echo $select; ?>
Bob
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/15 05:03 By GreyHead.
 
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.
#8424
kai920 (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Re:State/Province dropdown 2 Months ago Karma: 0  
Hi Bob,

Many thanks for your reply. Maybe I am misunderstanding what the code is supposed to do

I used the code as posted immediately above, I thought I would see a pull down list with "Audio" and "Blog"... is that not what should show up?

Or perhaps something is still wrong with the code? Because I do not see the J template, nor the submit button. Screenshot:

 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8426
GreyHead (Admin)
Support
Admin
Posts: 2905
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:State/Province dropdown 2 Months ago Karma: 62  
Hi Kai920,

Sorry trying to do two things at once I stuck it in a copy of the test form and forgot to delete the other code. I'll amend my post now. That said, I get the drop-down OK.

Bob
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/15 05:03 By GreyHead.
 
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.
#8428
kai920 (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Re:State/Province dropdown 2 Months ago Karma: 0  
Could there be something wrong with my Joomla setup? Very strange : I am getting a blank screen with only the following code in the form. No Joomla template, no drop down list, nothing.

Code:

<?php $Category = Array( 'Audio' => 'Audio', 'Blog' => 'Blog' ); $options = array(); if ( !isset($_POST['category']) ) { $_POST['category'] = ""; } foreach ( $Category as $cat => $category ) { $options[] = mosHTML::makeOption($cat, $category); } $select = mosHTML::selectList($options, 'category[]', 'size="1"', 'value', 'text', $_POST['category']); echo $select; ?> <input name='category[]' type='hidden' />
The HTML source only has one line: <form name="ChronoContact_quotes" id="ChronoContact_quotes" method="post" action="index.php?option=com_chronocontact&amp;task=send&amp;chronoformname=quotes" >
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8430
GreyHead (Admin)
Support
Admin
Posts: 2905
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:State/Province dropdown 2 Months ago Karma: 62  
Hi Kai,

It looks Ok to me - but there may still be a typo in there. Set your site to Error Reporting Maximum; comment out most of the lines of code and refresh the form, uncomment a few more lines until you find where error is.

Bob
 
Report to moderator   Logged Logged  
 
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.
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