473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

links within the header tag

anfetienne
424 256MB
i previously posted about a transfer code from one server to another but i have worked it out. this post is to to with the same code but different matter.

at the top of the code i have the header tag for when it's finished processing. The code below gets variables from a prevous page one of which is the return url after comepletion. the url with $return looks like this "http://theauctionwinners.com/resources/templateEdit.php?template=0&ID=987768090"

is there anyway i can use this variable with the header tag?

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. header ("Location: templateEdit.php");
  3. session_start();
  4. $imgFLDR = $_GET['rand'];
  5. $returnURL = $_GET['return'];
  6.  
  7. echo $imgFLDR;
  8. echo $returnURL;
  9. ?>
  10.  
Sep 7 '09 #1
14 1637
Dormilich
8,658 Expert Mod 8TB
I don’t see, why you can’t.

but your posted code does not make any sense. if you use the Location header (after that the script is usually terminated), you’re redirecting to another page, so why do you have additional commands that probably don’t get executed?
Sep 7 '09 #2
anfetienne
424 256MB
i took out the header when i was testing to make sure the variables are set but forgot to delete the echos....

how would i add the variable to the header tag

header ("Location: $var");?
Sep 7 '09 #3
Dormilich
8,658 Expert Mod 8TB
given that you define $var as desired, yes.
Sep 7 '09 #4
anfetienne
424 256MB
ok thanks ill test this
Sep 7 '09 #5
anfetienne
424 256MB
the header wouldn't work with a variable so i used javascript to redirect once all processes have been run instead.

still on the point of this api....does iframes cut out some of the functionality of certain things?
Sep 7 '09 #6
Dormilich
8,658 Expert Mod 8TB
@anfetienne
are you sure the variable is correct? (it works for me)

@anfetienne
are you asking for PHP, HTML or Javascript issues?
Sep 7 '09 #7
anfetienne
424 256MB
im just asking generally.....don't know how to class it since im using php to write a javascript code that automatically resizes an iframe and loads a page inside it
Sep 7 '09 #8
Dormilich
8,658 Expert Mod 8TB
of course there are, frames ain’t despised for nothing.
Sep 7 '09 #9
anfetienne
424 256MB
lol i see that now....can i show you what i'm trying to deal with?
Sep 7 '09 #10
Dormilich
8,658 Expert Mod 8TB
only if it can’t be avoided… *gg*
Sep 7 '09 #11
anfetienne
424 256MB
ill private message you with details
Sep 7 '09 #12
Markus
6,050 Expert 4TB
@anfetienne
Questions shouldn't be taken to PM - that is against our forum guidelines. Please continue the conversation in this thread.
Sep 7 '09 #13
anfetienne
424 256MB
its not a question....im just showing him the project ive been working on and what the iframe is doing to be such a pain..... but as i have my confidentiality to consider i can't post a username and password for the site on in a question
Sep 7 '09 #14
Dormilich
8,658 Expert Mod 8TB
I can’t spot the problem you mentioned.
Sep 7 '09 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: Shannon Jacobs | last post by:
Maybe there is a simple trick here, and I'm not spotting it... Is there a guru of CSS hanging around here who can help out? The page in question has a multi-column table with a list of links in...
4
by: Fred | last post by:
I want to insert DHL and FedEx tracking links with the waybill numbers in the body of emails I am sending using sendobject. I am not sending attachments. DHL and FedEx use long links that...
2
by: CW | last post by:
I have pages, such as LogOn.aspx, Payment.aspx that enforces the use of SSL. Every single one of my page embeds a header and menu server controls - which have links to other pages that do not...
1
by: Andre Ranieri | last post by:
I have a quick question - I'd just like to have confirmation to be sure. I'm building an ASP.NET corporate site for my employer, some of the pages have e-commerce capability and will need to be...
1
by: khoegen | last post by:
I've created a Table and wish to create links between the records wtihin the table. Background: The table consists of a list of Documents. These documents contain references to other...
3
by: yeah1279 | last post by:
I recently changed our web pages to be utf-8 encoded (server response header content type is also set to utf-8). There are some links to external sites within the pages that pass parameters that can...
1
by: Kirk | last post by:
I have a WS called "IWeb", which I define within the page class like this: Dim service As IWeb.WebService I then have a button that calls the web service like this: Dim header As...
7
manuelgk
by: manuelgk | last post by:
I have another problem. I want to catch the click event, I put certain code and it works well with my code but with a little problem, I already catch the click event and the links too, but when I try...
4
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.