I have problem in using pf_script_with_get($SCRIPT_NAME).....For using this function i made a file funtions.php and included in each file where this function is used. the code of funtions.php is
<?php
function pf_script_with_get($script) {
$page = $script;
$page = $page . "?";
foreach($_GET as $key => $val) {
$page = $page . $key . "=" . $val . "&";
}
return substr($page, 0, strlen($page)-1);
}
?>
i used pf_script_with_get($SCRIPT_NAME) in form action of various pages but when i uses this function as form acton the html table does not display.

Member Avatar for diafol

Use post instead of get for forms?

Use post instead of get for forms?

i already used post method in the form.........

Member Avatar for diafol

So use post in the function

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.