/    Sign up×
Community /Pin to ProfileBookmark

Returning to current page

Hey I have a newsletter subscription form on the side of each page in a site Im working on and I was wondering how to make it so when the user fills in that form and it sends the data it will return to the same page they are on.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@scragarNov 15.2006 — [code=php]<?
if($_SERVER["HTTP_REFERER"] != ""){
http_redirect ($_SERVER["HTTP_REFERER"]);
exit;
};
?>[/code]
Copy linkTweet thisAlerts:
@novemberGreyauthorNov 15.2006 — Im sorry I didnt explain it will enough, the form uses an external PHP script to process the data, so what can I put in the php script to tell it to return to the previous page after it has processed the data?
Copy linkTweet thisAlerts:
@chazzyNov 15.2006 — how do you get the site that sent you the page?
Copy linkTweet thisAlerts:
@novemberGreyauthorNov 15.2006 — I dont understand your question
×

Success!

Help @novemberGrey 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.18,
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,
)...