Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 26. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  get field data to include in link (calling php script)

phpMyEdit General     get field data to include in link (calling php script)
Odoslať novú tému   Odpovedať na tému    
 
eva     Založený: 30.05.2014   Príspevky: 2  
Príspevok Zaslal: 2014-05-31 00:02
Návrat hore  Odpovedať s citátom     

I appology for this obviously simple question, but I can't find a solution to this:
retrieving data works fine, by clicking on a person's name (or mail address) I would like to send a mail to this person.
So, adding a link and invoking a php script works - but I can't find out how to get the data (e.g. prename AND surname of this person) to handle it to the php script.
In the example below I use ..?PName=$value to handle the prename to the script - but how do I get the surname at this stage? to combine the terms into something like ?PName=$value&SName=$...????
any help appreciated, thanks in advance!
Eva


$opts['fdd']['PName'] = array(
'name' => 'PName',
'URL' => 'http://www.xxxxxxxxxx/phpedit/test.php?PName=$value',
'select' => 'T',
'maxlen' => 255,
'sort' => true,
);
$opts['fdd']['SName'] = array(
'name' => 'SName',
'select' => 'T',
'maxlen' => 255,
'sort' => true
);

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2014-05-31 18:24
Návrat hore  Odpovedať s citátom     

Remove the 'url' option and use CONCAT to build a link, see
http://opensource.platon.org/forum/projects/viewtopic.php?t=603945&highlight=concat+mailto

 
eva     Založený: 30.05.2014   Príspevky: 2  
Príspevok Zaslal: 2014-06-03 23:48
Návrat hore  Odpovedať s citátom     

doug Napísal:
Remove the 'url' option and use CONCAT to build a link, see
http://opensource.platon.org/forum/projects/viewtopic.php?t=603945&highlight=concat+mailto


oohh...
thanks a lot! I was not able to understand this from the documentation, sorry!!

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2014-06-04 00:22
Návrat hore  Odpovedať s citátom     

It is easier than it looks, but it is tricky.

Experiment with it. Add this (dummy) virtual field to your form after changing "domain" to the name of one of your fields.

$opts['fdd']['dummy1'] = array (
'input' => 'R',
'name' => 'Whois',
'sql' => 'CONCAT("<a href=\"http://whois.domaintools.com/", domain, "\" target=\"_blank\">whois</a>")',
'options' => 'VFL',
'escape' => false,
'sort' => true
);

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2015-01-14 18:59
Návrat hore  Odpovedať s citátom     

Post your code for the I field.

Probably you need to add LF to the 'options'
http://opensource.platon.org/projects/doc.php/phpMyEdit/html/configuration.permission-options.html

 
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