Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

gonliSs on "Permissions problem after adding parameter to redirection"

$
0
0

Hello,

I have simple form which calls my function:

<form class="pure-form pure-form-stacked" method="POST" action="<?php echo admin_url( 'admin.php' ); ?>" >
    <fieldset>

        <input type="hidden" name="action" value="update_game_list" />
        <button type="submit" class="pure-button pure-button-primary">Update</button>
    </fieldset>
</form>

and then in function my code does simple thing and then I'd like to return one variable to this page, so I have such code at the end of function update_game_list:

wp_redirect( $_SERVER['HTTP_REFERER'] . "?inserted_games=" . $inserted_games );
		exit();

but it returns error:

You do not have sufficient permissions to access this page.

but when I delete parameter everything is ok:

wp_redirect( $_SERVER['HTTP_REFERER'] );
		exit();

Why? How to repair it?


Viewing all articles
Browse latest Browse all 8245

Trending Articles