Re: Newbie question........................very silly
| From: | George Patterson | Date: | Wed, 08 Nov 2000 13:36:08 +0000 |
| Subject: | Re: Newbie question........................very silly | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24302@lists.php.net to get a copy of this message | ||
srinivasan ranganathan wrote:
>
> Hi
>
> I am a newbie and am making a phone book database manager. I am using PHP
> 4.0 and MySQL. I have a HTML form called ins.html. It takes data and tries
> to insert data using a PHP file called ins_done.php.
>
> My problem is, the user has to click 'BACK' after inserting each record. I
> want to avoid this. Should I make a single file called ins.php which
> initialises a flag varialbe and also inserts data and then check this flag
> everytime?
>
> Please help..
>
> Thanks in advance
> Srinivasan, India.
Srinivasan, You could just add a hpyerlink to the previous page after
the record has been written...
for exmaple
if your ins.html page is at
www.myserver.com/phonebook/ins.html
and php script is at
www.myserver.com/phonebook/ins.php
then insert this Href into your code <a
href="/phonebook/ins.html">Return to the previous page</a>
You may need to alter the position depending on the php code.. if you
can leave it outside the <?php ?> tags...
Hope that helps...
George
--
george@laopdr.com
Network Administrator
Planet Online
Vientiane, Lao PDR