Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

php am I doing something wrong

Thread Tools
 
Search this Thread
 
Old 04 September 2006, 06:59 AM
  #1  
mykp
Scooby Regular
Thread Starter
 
mykp's Avatar
 
Join Date: Jan 2006
Location: On the Cat and Fiddle
Posts: 1,483
Likes: 0
Received 0 Likes on 0 Posts
Default php am I doing something wrong

I nearly always use Asp but for my current project the client has linux servers so i've had to use a little php.

My problem is this.

In asp.

I pass the following url:

http://server/image.asp?image=happy.jpg

image.asp contains the line

<img src="<% request.querystring(image) %" border=0>


my php page which does the same looks like this

<img src="<?php $_GET["image"]; ?>" border=0>

but this doesnt work!

Am I doing something wrong? cos this just wont work. can any one also recommend a good php book as I have a feeling this wont be the only problem I run across.
Old 04 September 2006, 09:39 PM
  #2  
RichB
Scooby Regular
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Default

<img src="<?php echo $_GET["image"]; ?>" border=0>
Old 04 September 2006, 10:16 PM
  #3  
mykp
Scooby Regular
Thread Starter
 
mykp's Avatar
 
Join Date: Jan 2006
Location: On the Cat and Fiddle
Posts: 1,483
Likes: 0
Received 0 Likes on 0 Posts
Default

Ta, for that.

I figured it out earlier, but hadnt got round to posting.
Old 04 September 2006, 10:30 PM
  #4  
RichB
Scooby Regular
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Default

yeah yeah
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
thunder8
General Technical
0
01 October 2015 09:13 PM



Quick Reply: php am I doing something wrong



All times are GMT +1. The time now is 10:27 AM.