Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Send Page

Post new topic   Reply to topic
$goback
View previous topic :: View next topic  
Author Message
columbiano
New User


Joined: 18 Sep 2005
Posts: 4
Location: México

PostPosted: Sun Sep 18, 2005 1:39 am    Post subject: $goback Reply with quote

Hello,

I did not find anything about $goback this in the forum's search function...

Everything in my Send Page is working fine - thanks for a Great Script!

Well, I have a question about after I press the Submit button, it tells me the email has been sent - fine. Then there is the Go Back button... Right now when I click that, it goes back to the form again - to send another email. How can I get that button to go back to my home page (or similar).

(I see how to change the "label" of the button in the config file, but how do I change the "action" that it does?)

I'm using CJ Send Page V1.0. I just noticed when I joined this forum there is a CJ Send Page V2.0 (PopUp). Should I have used that instead? (Then the user can just close the pop-up when they are done...)

Thanks for any help you can give!

Julio
Back to top
View user's profile Send private message
darkcarnival
CJ-Design.com Admin



Joined: 10 Jul 2003
Posts: 1471
Location: Michigan

PostPosted: Thu Sep 29, 2005 6:31 pm    Post subject: Reply with quote

yes v2.0 is what you should be using
_________________
Admin of CJ-Design Forum
watch out spammers, I'm watching you! Twisted Evil

offical rules:
http://www.cj-design.com/forum/viewtopic.php?t=2002

Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/

version 0.9 coming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
GodfatherUK
CJ-Design.com Moderator



Joined: 17 Sep 2004
Posts: 251
Location: UK

PostPosted: Wed Oct 05, 2005 10:22 am    Post subject: Reply with quote

If you wish to continue using V1 and not the pop-up version of this script, i will post how to edit the $goback function so that you can have it link to the page you wish.

OPEN ([b]process.phpp/b])

FIND
Code:
echo"<center><br><input type=\"button\" value=\"".$goback."\" onClick=\"history.go(-1)\"></center>  ";


REPLACE WITH

(to go back 2 spaces in your history to the page before the form)
Code:
echo"<center><br><input type=\"button\" value=\"".$goback."\" onClick=\"history.go(-2)\"></center>  ";


(to return to the url you specified in your config.php)
Code:
echo"<center><br><input type=\"button\" value=\"".$goback."\" onClick=\"parent.location='".$url."'\"></center>  ";


(to return your index page but wont be changed if you edit config.php)
Code:
echo"<center><br><input type=\"button\" value=\"".$goback."\" onClick=\"parent.location='http://www.domain.com'\"></center>  ";


---

Hope this helps Smile
_________________
GodfatherUK
CJ Designs Forum Moderator

"I dont think i am good at coding.. But i KNOW im good at helping"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Send Page All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design