Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question, is the syntax correct?

Status
Not open for further replies.

Apollo6

Technical User
Jan 27, 2000
418
US
Some code up here...

$new_url = $row["rpt_path"];
?>
<a href=&quot;<? echo &quot;$new_url&quot;; ?>&quot;></a>
<?

Some code down here...

If $new_url is a complete url that I know works, should the above code display the page- $new_url
 
Ummm... I did... It didn't pull up the page.

I modified it some:

$new_url = $row[&quot;rpt_path&quot;];
echo &quot;<a href=\&quot;$new_url\&quot;>$rpt_name</a>

This puts a link on the page, that when clicked opens the page.

I just didn't want the extra click.

 
You already did it in your other post:

$new_url = $row[&quot;rpt_path&quot;];
header(&quot;Refresh: 1; url=$new_url&quot;);
 
The reason I am trying this direction is because my other post with this code puts me in a loop:

$new_url = $row[&quot;rpt_path&quot;];
header(&quot;Refresh: 1; url=$new_url&quot;);

By loop, I mean that when I click the 'Back' button in the browser, it sends me back to the page that redirected me to the report I just got through looking at. Once in that page, it refreshes and sends me back to the report. Obviously, it's in how I've written the script.

I'm looking it over now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top