Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  3 values in field pass to URL

phpMyEdit Configuration     3 values in field pass to URL
Odoslať novú tému   Odpovedať na tému    
 
coogie     Založený: 01.03.2008   Príspevky: 4  
Príspevok Zaslal: 2008-03-07 00:39
Návrat hore  Odpovedať s citátom     

Hello there. I want to pass 3 field values from the selected record to a php file when you click on the link of one of the fields.

My table is like this:

ProductID, Email, preference_name, firstname, surname.

At the moment, i can pass 2 of the values when i click on the email. But it's very important that i also pass the preference_name somehow!

this is my code that works
Kód:

$fdd["email"] = array(
   'name'=>'Email',
   'select'=>'T',
   'type'=>'string',
   'maxlen'=>64,
   'nowrap'=>false,
   'required'=>true,
   'sort'=>true
);

$fdd['email']['URL'] = 'http://localhost/phpMyEdit-5.1/orders.php?email=$value&ID=$key'; 


But i would like it to work like this:
Kód:
$fdd['email']['URL'] = 'http://localhost/phpMyEdit-5.1/orders.php?email=$value&ID=$key&pref=$preference_name';


how is it possible to do this?


Also, out of interest. Why does nothing work if i put the $opts['fdd'] before everything like every single example i see on here?

 
coogie     Založený: 01.03.2008   Príspevky: 4  
Príspevok Zaslal: 2008-03-07 21:22
Návrat hore  Odpovedať s citátom     

i solved this by making a better mysql script in the document it goes to

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov