Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Someone with PHP knowledge needed (https://www.cableforum.uk/board/showthread.php?t=5041)

Bifta 09-12-2003 15:20

Someone with PHP knowledge needed
 
I'm having a bit of a headache, what I'm trying to do is:

Users have a list of URL's they can click on, whatever one/ones they click on I wan't each address stored in a session then they'd go to a contact form which would echo each clicked URL in for example a textarea (or similar).

Anyone have any ideas?

philip.j.fry 09-12-2003 15:41

Re: Someone with PHP knowledge needed
 
Can't help you with php I'm afraid, if you get no other replies I can help you with it in perl/cgi or javascript.

Nemesis 09-12-2003 15:53

Re: Someone with PHP knowledge needed
 
Quote:

Originally Posted by philip.j.fry
Can't help you with php I'm afraid, if you get no other replies I can help you with it in perl/cgi or javascript.

You could PM Keyser/King Phoenix/Frank to get their attention ...

Bifta 09-12-2003 16:16

Re: Someone with PHP knowledge needed
 
Quote:

Originally Posted by philip.j.fry
Can't help you with php I'm afraid, if you get no other replies I can help you with it in perl/cgi or javascript.

If it's doable in javascript I'd be more than interested.

philip.j.fry 09-12-2003 18:34

Re: Someone with PHP knowledge needed
 
Quote:

Originally Posted by Bifta
If it's doable in javascript I'd be more than interested.

If I'm guessing what you want correctly, it's easily doable. Is this the kind of thing you were after?

KingPhoenix 09-12-2003 18:47

Re: Someone with PHP knowledge needed
 
I could sort it out, but it wouldnt be very tidy......

Talk to Keyser, im sure he would be able to sort something for ya, or explain to ya the easiest way to do it...

I would do it by using forms.... Each link would be in its own form, with the link itself being a submit link. The new page stored as the action, then use a hidden field to capture the link name, so something like this
Code:

<form name="link1" method="post" action="endpage.php"><input type="hidden" name="clickedlink" value="URLGOESHERE">
<a href="javascript:document.link1.submit();">URLGOESHERE</a>

I hope that helps, like i said, its not the tidiest way to do it, but it would work...

If you want me to do the whole page, and the second page using that method let me know.

But Keyser would be the best person to speak to (from experience)


Edit ::: Forgot to mention, the bits in bold must match respectively

KingPhoenix 09-12-2003 18:51

Re: Someone with PHP knowledge needed
 
ahhh looking at Bifta's demo, i think that his method would probably be the best, as all that the method i suggested does, is displays the domain name clicked into another form..

I think i understood it wrong, BTW Bifta, looks good :)

Bifta 09-12-2003 18:53

Re: Someone with PHP knowledge needed
 
Thanks for all your help, the javascript bit works but when they start hooning around to different parts of the site it won't keep them stored. Turns out that the easiest way "apparently" to do it is to use MySQL and set up a temporary "url" store, then recall it in the form on the contact page. I've no clue how to do this as I've spent the best part of a week learning how to script GD functions so I've been a bit naughty and paid some feller from India to do the whole thing for $10 ;)

Anyhoo, basically it's for a property search I've got running for around 30 clients using a central MySQL database, works exceptionally well, just updated it to automatically resample images as they're uploaded so it creates a thumbnail and a compressed image then deletes the original from the server, saves a shed load of bandwidth.

Quote:

I think i understood it wrong, BTW Bifta, looks good
? That page isn't mine, it was one Philip.j.fry kindly knocked up.

philip.j.fry 09-12-2003 19:04

Re: Someone with PHP knowledge needed
 
Quote:

Originally Posted by Bifta

? That page isn't mine, it was one Philip.j.fry kindly knocked up.

Aww, and after the whole five minutes I spent making it :D

zoombini 09-12-2003 20:50

Re: Someone with PHP knowledge needed
 
the gerneral forums at phpbb.com may help

Bifta 09-12-2003 21:44

Re: Someone with PHP knowledge needed
 
Quote:

Originally Posted by zoombini
the gerneral forums at phpbb.com may help

? How

Peter 09-12-2003 22:26

Re: Someone with PHP knowledge needed
 
Quote:

Originally Posted by Bifta
I'm having a bit of a headache, what I'm trying to do is:

Users have a list of URL's they can click on, whatever one/ones they click on I wan't each address stored in a session then they'd go to a contact form which would echo each clicked URL in for example a textarea (or similar).

Anyone have any ideas?

I can help you.

Email me: peter@darkblizzard.com

:)


All times are GMT +1. The time now is 14:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum