Reply to Re: Novice needs help :)

Your name:

Reply:


Posted by clashers5 on 11/16/06 15:37

You'll want to populate the textfield -- I would suggest a text box --
when the output page loads. I assume that you can pull the required
query string variables from a database. So, without knowing too much
about your setup and assuming that the two required query string
variables are "ax" (with a constant value of "out") and "id" (with the
value of the page/ account whose click count will be incremented, it
would look something like this:

---->> CODE <<----
<?php
/* Get the user id */
// If you use a database or have passed the user id to the output
// script, you may want to put it in a friendly variable here. I'm
// going to use $userid
?>

<!-- Now out the html leading up to the textbox -->

<textarea name="outputLink">
http://www.affiliatesjunction.net/directory.php?ax=out&id=<?=$userid?>
</textarea>

<!-- Put the rest of the html here -->
---->> END CODE <<----

Or something like that. It will of course vary in how you get the user
id, but the general idea is there.

HTH

casper christensen wrote:
> Hi
>
> I run a directory, where programs are listed based on the number of
> clicks they have recieved. The program with most clicks are placed on
> top and so on. Now I would like people to be apple to place a link on
> there site so people can vote for their program, "ad a click". eg
> someone clicks the link on some page and it counts +1 click on my page.
>
>
> if some one clicks the link below it will count a click on my page.
> http://www.affiliatesjunction.net/directory.php?ax=out&id=280
>
> Now how can I have this link showed, in a textfield, when someone ads
> their program?
>
>
> I don't reaaly know much about php, so please just let me know what
> information is needed for you guys, so you can help me out!
>
>
> Casper
> my site is http://www.affiliatesjunction.net
>
> I'd like this like to show up after someone ads their link (thank you
> page) . If you want to try it out just ad a link with "google test" or
> something as title.
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация