LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2005, 07:14 AM   #1
mrobertson
Member
 
Registered: May 2005
Posts: 275

Rep: Reputation: 30
Coding a redirect function in php


I have the following line of code written in php:

Code:
$redirect_page = $_SERVER['PHP_SELF'] . "?counter=" . $counter;
Which display the counter in the address each time a message is sent. What would be the syntax to add more that one variable to this url. I have four othervariables that I would like to have displayed in the url. Can nayone help me woth this or point me in the right direction?
 
Old 06-22-2005, 08:19 AM   #2
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
I'll give you a tip!

http://www.google.com.br/search?biw=1008&hl=pt-BR

Here we have two variables: biw and hl
You see the first variable is there in the same way yours is. So the next natural step is?
 
Old 06-22-2005, 08:40 AM   #3
mrobertson
Member
 
Registered: May 2005
Posts: 275

Original Poster
Rep: Reputation: 30
What about the quotations? Is there only one set around counter or does a set get put around each variable?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
coding a php server mrobertson Linux - General 22 06-05-2005 01:06 PM
php coding with knoppix mrobertson Linux - General 1 06-01-2005 01:30 PM
Passing one php function result as a parameter to another php function davee Programming 13 09-12-2004 12:08 PM
error coding a function in c shams Mandriva 1 07-28-2004 12:09 AM
vim php color coding? Longinus Linux - Software 4 04-11-2004 05:56 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration