Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Add text from textbox behind URL.

Hi,

I am currently 'developing' my website but I have a small problem.
This is what I currently have, also what I want is showcased in this.

[Image: 9aH4Mcv.gif]

I want the number/text that is written in those 3 texts boxes added behind the URL.

So it would become tr.wqeqe.io/tr?offer_id=323728&pub=116&aff_subid1=INPUTBOX1&aff_subid2=INPUTBOX2&aff_subid3=INPUTBOX3

I am not really keen on sending my full code, since it is based on a paid source, and I do not know what is needed to be sent. Please send me a PM if you can help me with this (or post below) and I'll send you a message.
So you want the "share it" link to be updated as you type in those three boxes?

The essential cause of the stability of our currency was to be sought for in our concentration camps. The currency remains stable when the speculators are put under lock and key.

Gothenburg, Sweden
You can do this over javascript.
you can send me a pm.
(Nov 7, 2018 01:34 PM)DrDoof Wrote:  So you want the "share it" link to be updated as you type in those three boxes?

Yea, sorry. I am a bit retarded in explaining stuff.
(Nov 7, 2018 01:35 PM)Frankey Wrote:  Yea, sorry. I am a bit retarded in explaining stuff.

Easy enough, you'll have to use some JS witchcraft then.

Check input change for the three boxes and update the value for the text field with the url.
https://developer.mozilla.org/en-US/docs...rs/oninput
https://stackoverflow.com/a/7609144/7739134

The essential cause of the stability of our currency was to be sought for in our concentration camps. The currency remains stable when the speculators are put under lock and key.

Gothenburg, Sweden
Literally just use JavaScript to append the textbox values to the end of the URL. This is base level stuff, and PHP is not needed.

This is a basic example of doing it for one of the textboxes. If you have the baselevel URL I would recommend rebuilding the value from scratch (baseurl + "xyz="), instead of just appending onto the box. If you opt to not rebuild the URL, then you will need to verify that the variable is not already included in the URL when updating the share textbox value (So it doesn't include it twice).
Code
document.getElementById('textbox-1').onblur = function() {
   // Checks
   if (!this.value || this.value.length <= 0) { return false }

   // UI
   document.getElementById('share-box').value += "&xyz=" + this.value.trim();
};
Without your code, I'm not going to waste more time typing up an example.

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Yupol WindexFeb 9, 2020 07:03 PM 2 131 Feb 9, 2020 07:03 PM
Last Post: Yupol Windex
by a_different_usernameJan 7, 2019 12:27 PM 0 165 Jan 7, 2019 12:27 PM
Last Post: a_different_username
by UnderworldproblemJan 10, 2016 05:27 PM 10 221 Jan 10, 2016 05:27 PM
Last Post: Rushax