Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 20. apríl 2024
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Filter and/or redirect after adding a record.

phpMyEdit Features     Filter and/or redirect after adding a record.
Odoslať novú tému   Odpovedať na tému    
 
webber     Založený: 07.11.2007   Príspevky: 2  
Príspevok Zaslal: 2007-11-07 17:35
Návrat hore  Odpovedať s citátom     

Hi, I am trying (without valuable results...) to make a form behave like this:

-After adding a record, the program should return to the same form, in 'list' mode but showing only the last record I added.

or, if possible,

-After adding a record, the program should go to another form (working on another table), in 'add' mode with a given field containing the 'Id' of record added in previous form.

Anybody can help me?

Thank You in advance.

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2007-11-07 22:21
Návrat hore  Odpovedať s citátom     

trigger insert after

something like
header("location http://...")
die();

 
webber     Založený: 07.11.2007   Príspevky: 2  
Príspevok Zaslal: 2007-11-08 11:41
Návrat hore  Odpovedať s citátom     

michal Napísal:
trigger insert after

something like
header("location http://...")
die();


'header' doesn't work, it says:
Warning: Cannot modify header information - headers already sent by...

Any hint?

Thanks

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2007-11-14 13:18
Návrat hore  Odpovedať s citátom     

hm, yes, the headers are done outside of pme (so they are hard to control)

maybe a javascript redirect instead of header() one (i have no experience with javascript, but it should be easy)

 
pdemaers     Založený: 24.02.2005   Príspevky: 2  
Príspevok Zaslal: 2007-11-21 15:22
Návrat hore  Odpovedať s citátom     

Hi Guys,

I am faced with the same question for a project I am working on. After adding a record in one form, I need to open up a form from another table but copy a couple of values from the original form into it. I think triggers are probably the best way of doing this, but i do need some help to get me going.
I am a reasonably decent beginner at php programming.
Thanks a lot,
Cheers,
Patrick

 
themanthing     Založený: 24.12.2009   Príspevky: 5  
Príspevok Zaslal: 2010-01-19 13:46
Návrat hore  Odpovedať s citátom     

try to look this topic: http://opensource.platon.sk/forum/projects/viewtopic.php?t=7890&highlight=redirect

 
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