Forum Moderators: coopster

Message Too Old, No Replies

php page links

php links

         

krikri

10:33 pm on Jan 25, 2004 (gmt 0)



I have a form. When a user fills the form, it displays the results on another page.

I want to cut some links from a web page and place them inside the php form so that when a user clicks on the link, it opens another page.

Will it work?

Also, I have a picture I want to put inside a php form. Since php is not a graphic editor, how can I put the picture there? If I want to link, the picture, how can I link it in PHP?

I thank you very much.

NB: If I put the text and pictures there, will it affect the functionality of the form? At what point what I place the pictures or text links?

kumarsena

11:11 pm on Jan 25, 2004 (gmt 0)

10+ Year Member



do u want the suer to do the cut and paste of links or are you going to do it yourself during the writing of teh program?

the image, are u just going to do anything with it or is it just to display on the page...?

krikri

11:40 pm on Jan 25, 2004 (gmt 0)



do u want the suer to do the cut and paste of links or are you going to do it yourself during the writing of teh program?
the image, are u just going to do anything with it or is it just to display on the page...?

No. I just want to put the links there myself like this:
Home
(the url is www.example.com)
Sign Up
(the url is www.example.com/member.php
Field Trips
(the URL is www.example.com/field.php

Then the picture is a bird with a leaf in the mouth.

The URL is www.example.com/images/bird.gif

I want all these to be on the php page. The user will not do anything to it. I just want the user to see and click the links to display another page.

Thank you.

[edited by: jatar_k at 5:35 am (utc) on Jan. 26, 2004]
[edit reason] generalized urls [/edit]

kumarsena

12:38 am on Jan 26, 2004 (gmt 0)

10+ Year Member



No. I just want to put the links there myself like this:
Home
(the url is www.example.com)
Sign Up
(the url is www.example.com/member.php
Field Trips
(the URL is www.example.com/field.php

Then the picture is a bird with a leaf in the mouth.

The URL is www.example.com/images/bird.gif

I want all these to be on the php page. The user will not do anything to it. I just want the user to see and click the links to display another page.
--------------------------------------------------
well if i understand u right, this is more or less a html problem. all u have to do is use html to print the appropriate code. two ways to do that: on e is to exit from your php code in your program and just enter normal html (this is if your php is embedded into an html file), else u want to use the echo to prin the html link tags to the page(if your html is embedded into the php). something like this

echo" <a href=\"site.org\">home</a> ";

since this is in php mode u have to include the \ with the quotes there to not confuse the program. if u want to send information with the link to the next page then just add?var=value to the end of your link like this

echo" <a href=\"site.org?var=value?var2=value2\">home</a> ";

im not sure if this is what u were looking for, but hope it helps anyway...
kumar

[edited by: jatar_k at 5:36 am (utc) on Jan. 26, 2004]
[edit reason] generalized urls [/edit]

krikri

1:09 am on Jan 26, 2004 (gmt 0)



Thanks,
the php is inside a html file so I can use the html tags. I thank you and I will let you know the results.

Thanks.