php grab all GET variables in URL, and send them as POST variables back to same URL -


i'd clear url.

when people hit website, come this:

www.site.com/webpage/?var1=1&var2=2&var3=3

is possible grab of variables, send them post, reload page, , grab newly sent post variables clean url?

so user visiting page, in end www.site.com/webpage/

save get parameters session variable , redirect url without parameters. when called without parameters, parameters session.

session_start(); if (empty($_get) && isset($_session['_get'])) {     // page after redirect, copy session variable $_get     $_get = $_session['_get']; } elseif (!empty($_get)) {     // when called parameters, copy $_get session variable     $_session['_get'] = $_get     // , redirect page no parameters     header("location: /webpage/");     exit(); } unset($_session['_get']); // it's used once // use $_get in rest of script normal 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -