Re: schema shell problem

2008-07-04 Thread Ziad
Figured out what the problem is! the postgres driver does not override the alterSchema method which is responsible for generating the SQL for altering the schema. It is there in the mysql driver and works fine there. I'll try and do it for the postgres driver and update this post when/if I do. On

Re: Possible security risk when saving data in forms - adding fields

2008-07-04 Thread Dr. Tarique Sani
On Sat, Jul 5, 2008 at 11:37 AM, phpjoy <[EMAIL PROTECTED]> wrote: > > Throughout the examples in the manual (1.2 and 1.1), I haven't noticed > any reminder of that possible risk, though I noticed the bad > http://api.cakephp.org/1.2/class_model.html#ebe42ae387be89985b5a35dd428f5c81 Notice the t

Possible security risk when saving data in forms - adding fields

2008-07-04 Thread phpjoy
When getting a form from a user, it should be double checked in the user's action logic. A user could easily manipulate a form field to submit a new field to the server, like id="4294967294", and stuck the users table. The user could guess, of course, other field names, or see other forms/views an

Re: schema shell problem

2008-07-04 Thread Ziad
Hi Marcin, I know in normal situation I'd run 'cake schema generate' to update my schema with my new DB and then commit that for others to pick up. But I am trying to emulate the situation where my schema is different to my DB and to use 'cake schema run update' to update my DB. Does that make s

Bake missing relations v1.2 rc2

2008-07-04 Thread Maxus
Hi People, When using Bake in phpcake 1.2 rc2, the bake model function never asks about relationships, I have followed the name conventions but nothing seems to be found, anything I should try? I'm using MySQL 5.0. Here is an example of my Database model: --

Re: Infinite Recursion

2008-07-04 Thread Jonathan Snook
> I had built a seemingly stable CakePHP app when one day, out of > nowhere, it began to display no errors and get itself stuck in an > infinite recursion loop anytime I add a component/model/helper -- ANY > class that doesn't exist. While I would agree that that the infinite recursion is bad and

Infinite Recursion

2008-07-04 Thread jparonson
I had built a seemingly stable CakePHP app when one day, out of nowhere, it began to display no errors and get itself stuck in an infinite recursion loop anytime I add a component/model/helper -- ANY class that doesn't exist. I wrote over the cake directories and the same problem is occurring. Th

Re: Ajax

2008-07-04 Thread [EMAIL PROTECTED]
Thanks all. :) On 4 Jul, 09:59, da_student <[EMAIL PROTECTED]> wrote: > two ways: > echo ' > or better (my oppinion) > echo $form->input('id', array('label'=>false,...,'type'=>'checkbox')); > echo $ajax->observeField('id', array( 'url' => 'actionname', 'update' > => 'divname', 'frequency' => 0.0

Re: Ajax Helper bug ... ajax form only works if an ajax link is also on page

2008-07-04 Thread aranworld
Nevermind, I finally figured it out. The Ajax Helper uses rand() to generate the ids of it's forms. There is a bug with rand() that causes it to generate the same number. mt_rand() doesn't suffer from this bug, so should be used instead. -Aran On Jul 4, 5:04 pm, aranworld <[EMAIL PROTECTED]>

Ajax Helper bug ... ajax form only works if an ajax link is also on page

2008-07-04 Thread aranworld
I am experiencing some very odd behavior with the Ajax helper. I have a page with the following structure index.ctp - form('view','post', array('update' => 'view_box') ); echo $form->submit('Display View'); echo $form->end(); ?> This is where the view should be. The v

Re: Session does not expire after closing Browser

2008-07-04 Thread Chris Hartjes
On Fri, Jul 4, 2008 at 6:55 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Session does not expire after closing Browser. http://www.php.net/manual/en/ref.session.php "session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "u

Session does not expire after closing Browser

2008-07-04 Thread [EMAIL PROTECTED]
Session does not expire after closing Browser. I know this issue has been post here, Solution (Security.level = 'high'), but It doesn't work fine with applications using AJAX. How can I solve this problem??? --~--~-~--~~~---~--~~ You received this message because yo

Re: Use models/views object from other controllers/models/views ?

2008-07-04 Thread mark_story
On Jul 4, 11:46 am, FluF <[EMAIL PROTECTED]> wrote: > This is what i'm trying to do > > class FooController extends AppController{ > var $name = "Foo"; > var $useTable = false; > > }; > > class Foo extends AppModel{ > var $name = "Foo"; > var $useTable = false; > private $text = ""; > >

Re: Error Undefined property: pdfHelper::$helpers [CORE\cake\libs\view\view.php, line 875]

2008-07-04 Thread bmgz
... > class fpdfHelper extendsFPDF{ > var $helpers= array(); > var $title... ... Or just: var $helpers; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send ema

Can't Get Validation to Work

2008-07-04 Thread mwcbrent
I seem to be having a problem with validation. Everything works great so far but when I have empty fields they still get saved. Model: class Girl extends AppModel { var $name = 'Girl'; var $validate = array( 'description' => array( 'rule' =>

Re: ACL - Magic - Deleting a user

2008-07-04 Thread francky06l
If you need some help on User changing role check it here : http://www.cakephpforum.net/index.php?showtopic=27&st=0 At bottom of page the "inheritAcl" component takes care of this ... On Jul 4, 11:30 pm, francky06l <[EMAIL PROTECTED]> wrote: > Just 1 line : 113 > > if (!$data['User']['pa

Re: ACL - Magic - Deleting a user

2008-07-04 Thread francky06l
Just 1 line : 113 if (!$data['User']['parent_id']){ should be if (!$data['User']['role_id']){ Then I guess your problem adding a new user should be solved, Now when you change the current role of a user, you should check the new parent_id (if it changes) and set the proper parent Aro .

Re: ACL - Magic - Deleting a user

2008-07-04 Thread José Pablo Orozco Marín
Thanks francky06l, In my code: http://bin.cakephp.org/view/313440863 What do you think i need to change? francky06l escribió: > Adding a user should be automagic (using the ACL behavior, and > parentNode in model), changing the role requires a bit of coding, but > very simple .. > > > On Jul

Re: ACL - Magic - Deleting a user

2008-07-04 Thread francky06l
Adding a user should be automagic (using the ACL behavior, and parentNode in model), changing the role requires a bit of coding, but very simple .. On Jul 4, 9:28 pm, Josoroma <[EMAIL PROTECTED]> wrote: > Thanks to the kitchen example > from:http://aranworld.com/article/170/cakephp-acl-and-auth

ACL - Magic - Deleting a user

2008-07-04 Thread Josoroma
Thanks to the kitchen example from: http://aranworld.com/article/170/cakephp-acl-and-auth-sample-website Now im having Roles instead of Groups working. Now we can add user to ARO groups without problems. Few minutes ago i noticed when i delete a user, it is automatically removed from aros table,

Model Validation Rule Builder

2008-07-04 Thread Eric
I created a new way of creating validation rules for models, which I think is kind of slick, but I don't really think the way I have it working is very "cake-like" and I need some advice on how best it should be implemented. Right now in a model I am doing the following to add my RuleBuilder add

Re: How to find associated records in a HABTM relationship?

2008-07-04 Thread Fahad
first take the result of your model output in a variable, and pr($model_output) in your view. MarcS wrote: > Hi everyone, > > I have a model setup like the following > User -> habtm Group > Group -> habtm User > > How can I find the groups a user belongs to? > > I tried something like > $this->Us

Re: Use models/views object from other controllers/models/views ?

2008-07-04 Thread Eric
I am not entirely sure of what you are going after, but if otherController and Foo are related in some way, you can do the following. public function myaction(){ $this->otherController->Foo->setText("hello world"); $this->set('foo', $this->otherController->Foo); } That said, in general if ther

How to find associated records in a HABTM relationship?

2008-07-04 Thread MarcS
Hi everyone, I have a model setup like the following User -> habtm Group Group -> habtm User How can I find the groups a user belongs to? I tried something like $this->User->Group->find('all',array('conditions' => array('User.id' => $user_id))); but that doesn't work. I have no idea what to tr

Question regarding associations; hasMany -AND- belongTo

2008-07-04 Thread martin_nyc
I have a table of all US States. I use this table to associate users, posts and comments. Simple enough, but... I can't figure out how to get other fields out of the States table (state name instead of the id field) when I'm associating Posts and Comments. For example: Post belongsTo State and

Re: Application access problem

2008-07-04 Thread Ifti Khan
Thanks alot for ur reply. LoadModule rewrite_module modules/mod_rewrite.so line is uncommented in httpd.conf. I m using php5 on apache 2, windows xp. Is it ok? Ifti Khan On Jul 4, 6:09 pm, Smelly_Eddie <[EMAIL PROTECTED]> wrote: > I think you mean you want index.php? to not show in theurl? > >

Re: Use models/views object from other controllers/models/views ?

2008-07-04 Thread FluF
This is what i'm trying to do class FooController extends AppController{ var $name = "Foo"; var $useTable = false; }; class Foo extends AppModel{ var $name = "Foo"; var $useTable = false; private $text = ""; public function setText($txt){$this->text = $txt;} public function getTex

Re: schema shell problem

2008-07-04 Thread Marcin Domanski
hey > Then I go to the DB and drop the nickname column and then try and run: you should jsut run cake schema generate the second time to save you changes to a new schema. cake schema run update is used when you have newer schema file and older db config. > -- > cake schema run update >

Re: Subversion merge causing syntax errors - why?

2008-07-04 Thread aranworld
I will second what AD7six says. For a while I tried out this type of merging. I soon realized that it is much easier to just leave the Cake core alone. I just have a shared cake folder for all my projects that I do an SVN update on. One advantage of this is that if you start submitting patches

schema shell problem

2008-07-04 Thread Ziad
Hi, I really like the idea of the schema shell tool. I am looking to use it on a rather big project that we are about to embark on, this would be really useful. I am just messing around with it to see how to do things and have run into a problem. I have this table: -- create table users

Re: paginate and belongsTo at a belongsTo-Model

2008-07-04 Thread Ben
@grigri: Thanks a lot for the detailed answer. I will try it on weekend and give some response next week. @Smelly_Eddi: The Relations were just an example. I like your way of inspecting details but in this case i have to appreciate with grigri... Just cakephp relations... @all: Sunny weekend !!!

Re: Model validation

2008-07-04 Thread Jonathan Snook
Go back to how you originally had it and then use franky's advice and just pluralize the table name. On Fri, Jul 4, 2008 at 10:10 AM, Sai Krishna <[EMAIL PROTECTED]> wrote: > > It changed the file names accordingly > i.e > application_tool_controller is controller and class name is > ApplicationT

Re: Problem with {$__cakeID__$} in finderQuery

2008-07-04 Thread Jonathan Snook
Olivier, CakePHP does one query to get all the resources, grabs the IDs and then grabs all of the marks that have those IDs. Try this: "finderQuery" => 'SELECT AVG(Mark.value) AS average FROM res_marks AS Mark WHERE Mark.resource_id IN ({$__cakeID__$})' Let me know if that works. It sounds like

Re: How can you render() into a variable without outputting to screen in RC2?

2008-07-04 Thread keymaster
Bingo. Worked perfectly. Thanks francky06I. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Pagination with Custom Query

2008-07-04 Thread roby
Thanks Chris for the link. I've read that one too. And now, I may conclude that I must rewrite the query for pagination purpose. Here's the changed query: $conditions = array( "Faculty.id" => $activeUser["faculty_id"], "Document.created_date IN" => "-! ( SELECT created_date FROM ( SELECT course_i

Re: Model validation

2008-07-04 Thread Sai Krishna
It changed the file names accordingly i.e application_tool_controller is controller and class name is ApplicationToolController application_tool is the model name and class name is ApplicationTool application_tools is the table name with this view is getting messed up which has a javascript varia

Re: Problem with {$__cakeID__$} in finderQuery

2008-07-04 Thread OLance
Well... I was beginning to say that you didn't understand my problem... but after some minutes I realized that maybe I've just not understood how Cake works on this association overriding mechanism... Would you have any docs/tips on that ? As for the SQL tutorial I'm fine, thanks ^^ Thanks, Oli

Re: How can you render() into a variable without outputting to screen in RC2?

2008-07-04 Thread francky06l
After $this->controller->render(...) $this->controller->output = ''; hth On Jul 4, 3:55 pm, keymaster <[EMAIL PROTECTED]> wrote: > Just upgraded from 1.2 Beta to 1.2 RC2. > > In a component, I assign a string represention of a fully rendered > view/layout to a variable, like this: > > $myVar = $

How can you render() into a variable without outputting to screen in RC2?

2008-07-04 Thread keymaster
Just upgraded from 1.2 Beta to 1.2 RC2. In a component, I assign a string represention of a fully rendered view/layout to a variable, like this: $myVar = $this->controller->render('myLayout', 'myView'); That works. Unfortunately, it also outputs it to the screen, something which did not happen

Re: paginate and belongsTo at a belongsTo-Model

2008-07-04 Thread grigri
> Well Ben, Cars don't belong to Wheels, Wheels belong to cars. > Cars hasMany Wheels, and Wheels hasOne Tire. > Your lookup is exactly reversed, I would start there. Not so. Although "true" from an English grammar point of view, it depends on the model structure. If the `cars` table contains a

Auth Redirect Losing $_GET value

2008-07-04 Thread Kyle Decot
if I go to localhost/admin/view-user.php?id=1 and am not logged in I get redirected to the login screen. Once I have logged in, I get redirected back to localhost/admin/view-user.php and my id parameter is lost. Any suggestions on how to have this not happen? --~--~-~--~~~-

Re: Problem with {$__cakeID__$} in finderQuery

2008-07-04 Thread Smelly_Eddie
What are you getting at? WHERE id =1 WHERE id IN 1, 2, 3 FIndAll does not use an ID, it uses a list of all ID's. Why is your model called resource pulling from a table named mark? It seems like your trying to JOIN resource results with averages, you need a join query to do that. Hit up an S

Re: setFlash extended parameters

2008-07-04 Thread Smelly_Eddie
$session->params['extra'] On Jul 3, 7:29 am, Marc George <[EMAIL PROTECTED]> wrote: > Hi > > I'm a new Cake user, cutting my teeth on 1.2. Forgive me if I'm being > stupid here but I'm finding the documentation a little unclear on the > use of SessionComponent::setFlash() in its extended form. i.

Re: Model validation

2008-07-04 Thread francky06l
What is your model file name ? Should be application_tool.php, table name should be plural : application_tools .. hth On Jul 4, 2:52 pm, Sai Krishna <[EMAIL PROTECTED]> wrote: > Hey Just an update on this. One of my fellow coder has said that I'm > doing a mistake by using plurals > My App contro

Re: paginate and belongsTo at a belongsTo-Model

2008-07-04 Thread DaveMahon
PaginatorHelper lets you use standard find() options, including recursive. If I understand you correctly, setting it to 2 should work. On Jul 4, 4:30 am, Ben <[EMAIL PROTECTED]> wrote: > My problem: > > I have a belongsTo relation, like Cars belongsTo Wheels. And there is > a belonsTo relation li

Re: paginate and belongsTo at a belongsTo-Model

2008-07-04 Thread Smelly_Eddie
Well Ben, Cars don't belong to Wheels, Wheels belong to cars. Cars hasMany Wheels, and Wheels hasOne Tire. Your lookup is exactly reversed, I would start there. Wheel On Jul 4, 4:30 am, Ben <[EMAIL PROTECTED]> wrote: > My problem: > > I have a belongsTo relation, like Cars belongsTo Wheels.

Re: Application access problem

2008-07-04 Thread Smelly_Eddie
I think you mean you want index.php? to not show in the url? That sounds like a problem with mod_rewrite. Make sure your apache server has mod_rewrite enabled. On Jul 3, 6:10 am, Ifti Khan <[EMAIL PROTECTED]> wrote: > I baked an application. Now i can only access through > urlhttp://myweb.com/

Re: changing links according to selected language

2008-07-04 Thread Pedro
What about rewrite? You could make an URL like yoursite.com/pt_br/account/edit be rewritten to yoursite.com/index.php?lang=pt_br&url=account/edit/, for instance. On Jul 3, 9:37 pm, K3 <[EMAIL PROTECTED]> wrote: > OK, i have written following code and it seems to work: > > class AppHelpe

Re: Model validation

2008-07-04 Thread Sai Krishna
Hey Just an update on this. One of my fellow coder has said that I'm doing a mistake by using plurals My App controller name is plural to Model If the controller name is ApplicationToolsController and Model name is ApplicationTool and database table is application_tool and view directory name a

Re: Long load time

2008-07-04 Thread dr. Hannibal Lecter
When does this occur? After the cake update? What is the debug level of your app? Do you have all the default folders present in the ~/app/temp folder? Is it world-writable? Ah, questions.. :-) On Jul 4, 10:21 am, TomT <[EMAIL PROTECTED]> wrote: > When create a simple controller with one metho

Re: HABTM Query: use containable or not?

2008-07-04 Thread Corie
Thanks for the reply Dave. Your nested contain example helped me figure out a way to solve my needs. I was trying to do a find() on the Album model, when I actually needed to turn it around and do a find() on Category which contains Album.active = 1. $this->Category->contain('Album.active = "1"'

Re: form helper not automagically displaying value

2008-07-04 Thread dr. Hannibal Lecter
Try putting this in your controller: $this->data['Property']['id'] = [your value here]; By filling $this->data in your controller, you enable cake to "automagically" fill your forms. Cake doesn't understand the $property var. So, if you're doing something like this: $property = $this->Property

Re: validation problem

2008-07-04 Thread Steve W
Have you tried specifying the rule as an array as per the docs? http://manual.cakephp.org/view/141/email ... 'rule' => array('email', true) On Jul 4, 10:48 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > is try to validate an emailadres, my fieldname is 'email'. > > The code looks lik

Re: Detect cookies

2008-07-04 Thread Bayuadji
hmmm, javascript is for front-end. so I assume that it should put it in a view? =bad= On Fri, Jul 4, 2008 at 3:09 PM, dandreta <[EMAIL PROTECTED]> wrote: > > Thanks for your response. But, where I put javascript code? > In app_controller? In login function? In login view? > > On 4 jul, 08:00, f

Re: Problem with {$__cakeID__$} in finderQuery

2008-07-04 Thread OLance
Nobody had the same issue ? On 18 juin, 11:27, OLance <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I've got an issue with the {$__cakeID__$} value in a finderQuery : > > I have a Resource model and a Mark model, with these associations : > Resource hasMany Mark > Mark belongsTo Resource > > Mar

Model validation

2008-07-04 Thread Sai Krishna
Hi, I'm a newbie to cakePHP 1.2. I had been working module in which I had been doing the following model validation. The validation never fails, what am I doing wrong Model contains this

Re: Ajax

2008-07-04 Thread da_student
two ways: echo 'input('id', array('label'=>false,...,'type'=>'checkbox')); echo $ajax->observeField('id', array( 'url' => 'actionname', 'update' => 'divname', 'frequency' => 0.01)); On Jul 3, 9:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi again. > > Can anyone tell how do I can ma

Re: need some help in data saving using cake's own functions.

2008-07-04 Thread da_student
What is the first line > $this-model = $this->controller->modelName; supposed to do? I don't think you need that... (or if you think you do, did you try using $this->controller->model->save() ? ) On Jul 3, 7:38 pm, KiANIi <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to save data using $this->m

Long load time

2008-07-04 Thread TomT
When create a simple controller with one method and a view with the text "test" and go to the URL it takes 4 seconds for cakephp to respond and to show the output. When I press refresh it takes 0.2 seconds. The webservers load is around the 0.2 Why does is takes so long ? --~--~-~--~---

form helper not automagically displaying value

2008-07-04 Thread bmgz
I set('propery') in the controller but somehow the value field is turning up blank in the form hidden('Property.id'); ?> ...value=""... so I have to manually specify it: hidden('Property.id', array('value' => $property['Property']['id'])); ?> ...value="520"... Is this normal? I thought the valu

Re: Email component won't send

2008-07-04 Thread villas
I totally agree with Marcin and Jonathan. After spending hours of frustration with the email component, I used some simple Bakery code to use the phpMailer library in the vendors folder. Everything was working within minutes. From what I have read, the SwiftMailer library is even better than

Re: cryptic error message newbie

2008-07-04 Thread Dardo Sordi Bogado
It's coming from the call to $form->create in your view. The file is APP\views\pictures\edit.ctp, line 27. HTH, - Dardo Sordi. On Fri, Jul 4, 2008 at 7:22 AM, . <[EMAIL PROTECTED]> wrote: > Hi. I need help with this error message. I have no idea where it is coming > from. Thanks! > > > Notic

Re: validation problem

2008-07-04 Thread [EMAIL PROTECTED]
need no help anymore --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

cryptic error message newbie

2008-07-04 Thread .
Hi. I need help with this error message. I have no idea where it is coming from. Thanks! *Notice* (8) : Array to string conversion [*CORE\cake\libs\router.php*, line *910*] Code | Context $route = array( "/", "/^[\/]*$/", array(), array( "plugin"

Re: Detect cookies

2008-07-04 Thread francky06l
heu.. javascript goes in view, you can put this on login screen and if the user does not use cookie you show the message before he logs in On Jul 4, 10:09 am, dandreta <[EMAIL PROTECTED]> wrote: > Thanks for your response. But, where I put javascript code? > In app_controller? In login functi

validation problem

2008-07-04 Thread [EMAIL PROTECTED]
is try to validate an emailadres, my fieldname is 'email'. The code looks like this: var $validate = array( 'email' => array( 'rule' => 'email', 'message' => 'Please enter valid emailadres' ) ); I doesn't trigger an error,

Re: possible bug? validation URL rule

2008-07-04 Thread [EMAIL PROTECTED]
Hi Marcin, you're right. Thanks! -- Israel On 3 jul, 19:34, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > Hey, > ww can as well be a subdomain... > > It's hard to do a good email/www regexp ( ive seen some couple pages monsters) > > > > On Thu, Jul 3, 2008 at 5:58 PM, [EMAIL PROTECTED] <[EMAIL

Re: Preparing for the Digg Effect

2008-07-04 Thread RichardAtHome
Thanks Hermann, that is part of my plan :-) I was just looking for some tips and things to bear in mind at the design stage as its usually easier to implement these earlier than try and tag them on at the end. To be fair, I've done a couple of website with Cake and never had any problems with pe

paginate and belongsTo at a belongsTo-Model

2008-07-04 Thread Ben
My problem: I have a belongsTo relation, like Cars belongsTo Wheels. And there is a belonsTo relation like Wheels belongsTo Tires. Now i want to paginate the Cars und Filter by Wheels.type. But i can't beacause pagination didn't find the Wheels belongsTo (and so didn't join the Wheels table) at

Re: Quick informal poll

2008-07-04 Thread leo
> > The "Lord of the rings" references > > just confused me even more because I'm not familiar with it. You think that's bad. I don't know if it's still the case (it is, I just checked http://docs.sun.com/app/docs/doc/806-7612/6jgfmsvpd?a=view ), but Sun Microsystems' example username was spanky:

Re: BelongsTo at DatabaseTable

2008-07-04 Thread Ben
Yeah, it was just a bad day. For sure, there is no problem to make a modelfile. On that day i just come up with a little panic: "AAAH! Too many files in this fu*$§!g project!" So, thanks for replay at all. Ben --~--~-~--~~~---~--~~ You received this message becau

$ajax->dropRemote behaving strangely with array to update

2008-07-04 Thread b_o_n_e_y
Hi all, I have a little problem with $ajax->dropRemote. When I try and update a single div, everything works fine but when I change the update parameter to an array (even a single element array), things break down and nothing get's updated. Looking at the generated code, I can see a slight diff

Re: Detect cookies

2008-07-04 Thread dandreta
Thanks for your response. But, where I put javascript code? In app_controller? In login function? In login view? On 4 jul, 08:00, francky06l <[EMAIL PROTECTED]> wrote: > You can use javascript for this. A quick google search gave me this: > > http://www.tec-i.com/gEwCart/HowToEnableJavascriptAndC