[Phpwm] display results on same page

Paul Matthews paul.matthews.86 at gmail.com
Thu Jul 19 12:17:53 BST 2007

> $thispage     = $SCRIPT_NAME;
> <form method="POST" action="<?php echo $thispage; ?>?posting=yes&<?
> php echo
> $pagevars; ?>">
> <p>Search:<input class="SmallInput" type="text" name="searchcrit"
> size="20">
> <input class="buttonDefault" type="submit" value="Search!"
> name="B1"></p>
> </form>

You don't need script name, you can post it to it's self just by using ?.

<form method="post" action="?">

Or if you wish to add variables:

<form method="post" action="?some_var=some_val">

>From Paul

More information about the Phpwm mailing list