Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

I wantto display the output ACTION prog. on same sreen

General discussions related to php

Moderators: macek, egami, gesf

I wantto display the output ACTION prog. on same sreen

Postby vikaspa » Thu Aug 01, 2002 7:01 am

I wantto display the o/p ACTION prog. on same sreen
Normally with command
<FORM METHOD=POST ACTION="addhotel.php">

the control is shifted to "addhotel.php" and whatever messages I want to display are displayed on next page.

I donot want this to happen...I want to display the outcome of "addhotel.php" on the same form which has this "post action"



Report this post to a moderator | IP: Logged
vikaspa
New php-forum User
New php-forum User
 
Posts: 21
Joined: Wed Jun 19, 2002 10:03 pm

Postby Jay » Thu Aug 01, 2002 2:07 pm

So set the action to the same page
<form method='post' action='<?=basename($_SERVER['PHP_SELF'])?>'>

Just make sure your form can cope with the variables being present or not
Jay
 

Re: I wantto display the output ACTION prog. on same sreen

Postby mjr » Mon Oct 14, 2002 3:05 am

vikaspa wrote:I wantto display the o/p ACTION prog. on same sreen
Normally with command
<FORM METHOD=POST ACTION="addhotel.php">

the control is shifted to "addhotel.php" and whatever messages I want to display are displayed on next page.

I donot want this to happen...I want to display the outcome of "addhotel.php" on the same form which has this "post action"



Report this post to a moderator | IP: Logged


make this form to refer to the same script (the script, which posts it)
mjr
New php-forum User
New php-forum User
 
Posts: 18
Joined: Fri Sep 27, 2002 6:35 am


Return to PHP General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.