Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • Comment Script
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
Comment Script
Tweet Topic Started: Mar 27 2009, 12:04 PM (794 Views)
PD.Phoenix Mar 28 2009, 07:57 PM Post #11
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
That looks exactly like mine but i took a chance and changed it and it still doesn't redirect back. It just refreshes.
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
Kevin Mar 28 2009, 09:46 PM Post #12
Member Avatar


Posts:
700
Group:
Former Staff
Member
#8
Joined:
Jul 2, 2008
Coding language
HTML/CSS
Hmm. Maybe try getting rid of the redirect (for now), and add something like:

echo $tuturl;

Just to see what $tuturl returns, in case the POST value isn't being set properly or something.
Posted Image
Offline Profile Goto Top
 
PD.Phoenix Mar 29 2009, 01:16 AM Post #13
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
What like replace

echo "<meta http-equiv='refresh' content='2;URL=$tuturl'>";

with

echo $tuturl;

?
Edited by PD.Phoenix, Mar 29 2009, 01:16 AM.
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
Kevin Mar 29 2009, 08:37 AM Post #14
Member Avatar


Posts:
700
Group:
Former Staff
Member
#8
Joined:
Jul 2, 2008
Coding language
HTML/CSS
Yup. Generally, when something which uses a variable to work properly (and it doesn't work), a good way to troubleshoot it is to print out the variable so that you can make sure it's being set properly.

Or, if you'd rather, when you're on the page, view the source code, and see what the <meta> has as the URL it should redirect to.

If it appears right (For either), then I'm not sure what the problem is...
Posted Image
Offline Profile Goto Top
 
HolySavior Mar 29 2009, 01:42 PM Post #15
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
why do you have a meta in there in the first place?
Offline Profile Goto Top
 
PD.Phoenix Mar 29 2009, 04:06 PM Post #16
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
Don't I need the meta for it to refresh?

I'm rusty with PHP >.>

Code:
 
<meta http-equiv='refresh' content='2;URL=' '>


Kevin: changing

echo "<meta http-equiv='refresh' content='2;URL=$tuturl'>";

to echo $tuturl;

did nothing.. the submission page just sits there

How do I get it to redirect back to the page you commented on?
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
Kevin Mar 29 2009, 04:19 PM Post #17
Member Avatar


Posts:
700
Group:
Former Staff
Member
#8
Joined:
Jul 2, 2008
Coding language
HTML/CSS
Changing it wasn't going to make it redirect, it's supposed to show you what $tuturl is set as. If it's not the correct URL, then it's not going to redirect. Did anything show up when you had the echo in there? If so, can you post what it gave you?

And is there any way you post more of the code, perhaps the actual page that you submit the comment from? It's hard to tell what may be causing that issue without seeing more...
Posted Image
Offline Profile Goto Top
 
PD.Phoenix Mar 29 2009, 04:31 PM Post #18
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
This is what I got from the view source when I changed it to echo $tuturl;

*one sec... checking again*

Wouldn't the full submission script be all that's needed? I mean it's the script that's doing the redirect and adding the comment to the database

Changing it to echo $tuturl; and submitting..

View source
 
<h1>Submission Successful</h1>Your comment has been submitted. You will now be redirected back to the last page you visited. Thanks!
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Code -->
Edited by PD.Phoenix, Mar 29 2009, 04:35 PM.
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
PD.Phoenix Mar 30 2009, 03:52 PM Post #19
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
With help from Kevin, we've figured it out.

This can be closed now ^^

Thanx for all the help guys
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code University · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:48 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy