Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Pass id to page2 and add to url

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Postby Jay » Tue Sep 03, 2002 2:10 pm

Try:

PAGE2: <a href="http://www.website.com?id=<?=$_GET['id']?>">click here</a>
Jay
 

Hi!

Postby Serg4444 » Tue Oct 01, 2002 6:13 am

Yes, u need to use this
<a href="page2.php?id=1"><img src="pic_1.png" /></a>
(also instead id=1 u can put id=$var)
and after that
<a href="http://www.website.com?$id">click here</a>
Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com
Serg4444
New php-forum User
New php-forum User
 
Posts: 8
Joined: Fri Sep 27, 2002 4:01 am

Re: Hi!

Postby Jay » Tue Oct 01, 2002 8:21 am

Serg4444 wrote:Yes, u need to use this
<a href="page2.php?id=1"><img src="pic_1.png" /></a>
(also instead id=1 u can put id=$var)
and after that
<a href="http://www.website.com?$id">click here</a>
Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com

For an IT programmer you should know better. Your code will product a link as such:
http://www.website.com?1 instead of http://www.website.com?id=1
Jay
 

Postby Jay » Thu Oct 10, 2002 10:53 pm

You would get an error here:
<FRAME src=\"$row[0]\">

It should be
<FRAME src=\"".$row[0]."\">
Jay
 


Return to PHP coding => General

Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron