View Single Post
Old 10-28-2017, 04:10 AM  
starling
Confirmed User
 
Industry Role:
Join Date: Jan 2017
Posts: 312
Help with some code

This one should be quite simple but i'm struggling to get it right. I need a button with an input to take a number and store it into a domain. Like the ccbill thing you see where you put your number in and it will replace:
whateverdomain.com/xxxxxxalidland
to
whateverdomain.com/123456alidland
Ive tried javascript getElementByID but as i'm storing the button input as a variable it always comes up wrong I keep getting value="whatever" replacing the whole domain

I know I could use php to echo a variable into the code but i'm not sure if this can be implemented into a wordpress page can it? Would I have to build a plugin?

Any help would be appreciated
starling is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote