/    Sign up×
Community /Pin to ProfileBookmark

process in the same page

I have a form with an action processform.php where I insert something in de db. I click the button process it does what it has to do but it opens after clicking the button processform.php
What do I have to do sow it automatticly puts the original form back on the screen.

thnx
CGG

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@scragarFeb 09.2005 — Create the form on the bottom and use there value properties:
[code=php]
<form action="<? echo $PHP_SELF; ?>" method=post>
<input type="text" name="Uname" value="<? echo $_POST['Uname']; ?>" />
<input type="password" name="Pword" value="<? echo $_POST['Pword']; ?>" />
<textarea name="BigText"><? echo $_POST['BigText']; ?></textarea>
</form>[/code]
Copy linkTweet thisAlerts:
@CGGauthorFeb 09.2005 — Then I have to put the process of writing to the db and the form creation in the same file.??
Copy linkTweet thisAlerts:
@scragarFeb 09.2005 — no, keep them separate, but include the form creation from the DBinsert page.
×

Success!

Help @CGG 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.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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