/    Sign up×
Community /Pin to ProfileBookmark

calling files with php

Anyone have some basic code for opening html pages using php?

The html page would have something like this I believe to open a new document.

onclick=newpage.php?id=123

Or

viewpics.php?id=337&pic=4

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@moiseszaragozaFeb 05.2006 — I'm not sure what you want to do.

but

you can opend a new windown using the target="_Black" so it would look like


<a href="viewpics.php?id=337&pic=4" Target="_Blcnk"> link name </a>
Copy linkTweet thisAlerts:
@ranosbauthorFeb 05.2006 — Wanted to use a php file, for the source of opening a html page;

Like calling an image using php;

<img src="images01.php?image=my.gif">

But calling a html page instead of an image

The directory of my.gif is within the php script, not on the html page.

The directory within the php file for mygif:

$imagedir = "pages/images/chrome/" ;

How could this be used, replacing image with a html, and opening a new window instead of loading an image?
×

Success!

Help @ranosb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...