/    Sign up×
Community /Pin to ProfileBookmark

Form. Would like data to be displayed on current page

Form currently set up as:

<form name=’formname’ action=’form_query.php’ method=’POST’
.
.
.
.
<input type=”submit” value=”View”/>

Currently, this brings up the page form_query.php which as all my sql and table display data.

What I would like to do is display the data on the CURRENT page, rather than a new one. Is there a good way to do this?

Thanks in advance.

DPK

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@LuboxSep 21.2005 — I guess you could just do all that you do in form_query.php in the same script as the form itself? If you call the formpage form.php for example and set action="form.php", the form.php will be launched again, but this time with POST-variables present and you can manipulate the output.

Hope you understood this ?

Lubox
Copy linkTweet thisAlerts:
@dpkyteauthorSep 21.2005 — I thought about that but the script is used in different pages, therefore I created one module and want it to be executed multiple times.

Thx for the response.
×

Success!

Help @dpkyte spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...