| |
Welcome to Webmaster Forums 101!
You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact support.
|
 |
|
8th April 2003, 11:03 AM
|
#1
|
Join Date: Apr 2003
Posts: 20
Points: 0.00
|
some php and frames questions.
before i get into my questions, heres my temp site
http://www.illconcepts.puregraffiti....frametest.html
first off, the text on the left will be linked to pictures which will load in the right frame. now, i know how to target frames(target="right_frame"), but that loads the picture with no background or anything. what i am looking to do is be able to load the picture inside the table in the right frame. that is beyond my level in html.
numero two. when a name is click, and the picture loads(hopefully inside the table  ), i was wondering, is it possible for a little table to load underneath the pic with some artist information? for example, the artist, and where the picture was taken, or something like that. the cell is not set up in the link by the way.
any ways, just to let you know, i am trying these things on my own. im not depending on other people to make my website. i am intrested in learning these things, and if you know where i could find any tutorials that would help me with these problems, i would be more thna happy to read them. again, thanks for the help.
cheers.
|
|
|
8th April 2003, 11:09 AM
|
#2
|
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
|
I think it might be a good idea for you to read some tutorials on HTML. You'll find some tutorials on tables here:
http://www.webwondersnews.com/resour...ex.php?cat=154
Now, to get an image to load inside a table, it's as simple as this:
Code:
<table border="0">
<tr>
<td><img src="image.gif" border="0"></td>
</tr>
</table>
and it's the same with text:
Code:
<table border="0">
<tr>
<td>This is your text.</td>
</tr>
</table>
Does that explain it?
|
|
|
8th April 2003, 11:25 AM
|
#3
|
Join Date: Apr 2003
Posts: 20
Points: 0.00
|
thanks for the template link, im reading through them right now. any ways, i know the easy way to put an image and text into a table, but i do not want to have to make a new page for every picture because i would have to make over 600 new pages. i was hoping there would be a way to link from my left frame into a table on my right frame.
actually, i just did some looking up, and something like this can be done with asp.
http://visualorgasm.com/listviewer.a...=14&type=walls
when you click a picture, it loads in the temp frame. well, i may have to read up on asp now.
thanks again
cheers.
|
|
|
8th April 2003, 12:57 PM
|
#4
|
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
|
I could easily write ytou a simple script with PHP. Have you got it on your server?
|
|
|
9th April 2003, 10:07 AM
|
#6
|
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
|
This will be in your right hand side page. Change $imagedir.
Code:
<?php
// Image Directory
$imagedir = "images";
if (IsSet($HTTP_GET_VARS['image']) && IsSet($HTTP_GET_VARS['text']) && file_exists("$imagedir/$HTTP_GET_VARS[image]")) {
?>
<table border="0" width="100%">
<tr>
<td><img src="<?php echo "$imagedir/$HTTP_GET_VARS[image]"; ?>" border="0"></td>
</tr>
<tr>
<td><?php echo "$HTTP_GET_VARS[text]"; ?></td>
</tr>
</table>
<?php
} else {
echo "File Not Found";
}
?>
Now with your left side links you need to put something like this:
Code:
<a href="right.php?image=image.gif&text=This Is My Text" target="right_frame">Photo</a>
Replace:
image=image.gif&text=This Is My Text
With your images info.
Hope that helps!
|
|
|
9th April 2003, 01:13 PM
|
#7
|
Join Date: Apr 2003
Posts: 20
Points: 0.00
|
hi again. i cant stress how thankful i am. but speaking of stress, it isnt working. ive been trying to get this to work for about half an hour now and i just understand why it isnt working. here is what i have so far:
- my image directory is http://illconcepts.puregraffiti.com/images
- my $imagedir is "images"
i set up an image.gif file in the images directory and it still wont work. as soon as i load the page i get the file not found error in my table. here is what i have so far.
Code:
// Image Directory
$imagedir = "images";
if (IsSet($HTTP_GET_VARS['image']) && IsSet($HTTP_GET_VARS['text']) && file_exists("$imagedir/$HTTP_GET_VARS[image]")) {
?>
<table border="0" width="100%">
<tr>
<td><img src="<?php echo "$imagedir/$HTTP_GET_VARS[image]"; ?>" border="0"></td>
</tr>
<tr>
<td><?php echo "$HTTP_GET_VARS[text]"; ?></td>
</tr>
</table>
<?php
} else {
echo "File Not Found";
}
?>
and
Code:
<tr>
<td width="90" class="td.rowpic" nowrap="nowrap"><span class="gensmall"><a href="right.php?image=image.gif&text=test" target="right_frame">
45 Lies</a> 2 3 4 5</td></span>
</tr>
again, all this help is greatly appreated. cheers.
|
|
|
9th April 2003, 01:29 PM
|
#8
|
Join Date: Apr 2003
Location: Canada
Posts: 172
Points: 28.21
|
php
well if you put a image.gif directory in your images directory then your im deirectory will be images/.gif .gif bieing your directory inside your image directory.
and for your second code maybeet hat's where your problem is in the link image=image.gif thats what you have it should be images/image.gif try this first.
__________________
|
|
|
10th April 2003, 08:25 AM
|
#9
|
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
|
The reson is your frmae page is here:
files/tests/
and your images file is here:
images/
So what you need to do is change the $imagedir to this:
/images/
And then it should work.
:cheesygr:
|
|
|
10th April 2003, 10:52 AM
|
#10
|
Join Date: Apr 2003
Posts: 20
Points: 0.00
|
its still not working  . i have tried moving the pages around. like, i put frametest.html, leftframe.php, and right.php in the images directory and still nothing. any ways, heres my right.php page:
Code:
</style>
</head>
<table>
<table width="350" border="0" cellspacing="1" cellpadding="3" class="forumline">
<tr>
<th width="610" class="catHead">Ill Concepts :: Home</td>
</tr>
<table width="610" border="0" cellspacing="1" cellpadding="3" class="forumline">
<tr>
<td height="480" class="td.rowpic" nowrap="nowrap"><span class="gensmall">
<?php
// Image Directory
$imagedir = "/images/";
if (IsSet($HTTP_GET_VARS['image']) && IsSet($HTTP_GET_VARS['text']) && file_exists("$imagedir/$HTTP_GET_VARS[image]")) {
?>
<table border="0" width="100%">
<tr>
<td><img src="<?php echo "$imagedir/$HTTP_GET_VARS[image]"; ?>" border="0"></td>
</tr>
<tr>
<td><?php echo "$HTTP_GET_VARS[text]"; ?></td>
</tr>
</table>
<?php
} else {
echo "File Not Found";
}
?>
</td></span>
</tr>
<br></br>
thats the majority of the code, the rest is the style sheet info. this is leftframe.php:
Code:
</head>
<table>
<table width="90" border="0" cellspacing="1" cellpadding="3" class="forumline">
<tr>
<th width="90" class="catHead">Artist</td>
</tr>
<br></br>
<tr>
<td width="90" class="td.rowpic" nowrap="nowrap"><span class="gensmall"><a href="right.php?image=images/image.gif&text=test" target="right_frame">
45 Lies</a> 2 3 4 5</td></span>
</tr>
again, not the whole page, but the more important sections.
i have no idea what is going on and why this is not working. as soon as i load the page, i get the file not found error in my table.
cheers.
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
| Useful Resources |
| Webmaster Resources |
| |
| Developers Tools |
| |
| Developer Tutorials |
| |
|
All times are GMT +10. The time now is 10:37 AM.
|
|