|
Posted by casper christensen on 11/16/06 17:28
Weel u got the point, thats exactly what I'm looking for.
only problem is I don't knonw how,where or what to do with that
"$userid?" thing.
I don't know what this cod should really be, or where to find it.
Will it help If I published the php-pages for you to look at?
casper
clashers5 skrev:
> 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.
> >
Navigation:
[Reply to this message]
|