PHP Classes

Connection

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Locating addresses on...  >  All threads  >  Connection  >  (Un) Subscribe thread alerts  
Subject:Connection
Summary:How?
Messages:3
Author:mell1234
Date:2008-04-11 16:57:48
Update:2008-04-11 22:05:20
 

  1. Connection   Reply   Report abuse  
Picture of mell1234 mell1234 - 2008-04-11 16:57:48
Hi,

I am no programmer and have managed to muddle my way through the forms gen class and manage to achieve excellent results. I have read through all of the HTML doc, looked at the sample files, looked at every posting here and...still am unsure how to use the connect facilities (sorry, do not know correct term).

I basically want to make one field which is presented but not editable dependant upon the value of another field in the form.

Such as depending upon the 'selected' value in a field, the cost value will equal one thing or a different another field x a value...

I am completely incapable of writing any script myself but can follow ideas from examples etc...

Even with my limited expertise I can appreciate how much time and effort has gone into this functionality.

Cheers

Mell

  2. Re: Connection   Reply   Report abuse  
Picture of mell1234 mell1234 - 2008-04-11 18:22:16 - In reply to message 1 from mell1234
I will rephrase this in English ;-)


If select= FAMILY cost = X

if select = Individual cost = memqty x X

Thats what I want and I suspect the CONNECT code will do it but how?

Mell

  3. Re: Connection   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-04-11 22:05:20 - In reply to message 2 from mell1234
I think you can use the ONCHANGE event in the origin input and use some Javascript code to make it assign the values of the target input with updated values. On the server side, you need to assign the field values with some PHP code.