| Index
» Projekty
» phpMyEdit
» Fórum
» 3 values in field pass to URL |
 |
coogie
Založený: 01.03.2008
Príspevky: 4
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
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
|
|
|
|