This topic is locked
[SOLVED]

 Print Page ID

4/7/2015 5:26:18 AM
PHPRunner General questions
R
RicardoP author

Hey,

I'm trying to redirect to a printer-friendly page after the record is added to the database, I have also this code on the event 'After record added':

header("Location: Veiculo_print.php?editid1=".$keys["VeiculoID"]);

exit();



but it shows all the records instead of the (ID) record i have added.
Can you help me?

Thank you.

R
RicardoP author 4/7/2015

Nevermind, my mistake <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=77107&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> .

I've solved it by changing the code from this:

header("Location: Veiculo_print.php?editid1=".$keys["VeiculoID"]);

exit();



to this:

header("Location: veiculo_print.php?selection[]=".$values['VeiculoID']);

exit();