Unstoppable Domains

Basic Html Help

Spacemail by SpaceshipSpacemail by Spaceship
Watch

jedaprin

Established Member
Impact
291
Hi Guys i need some basic html help if possible

ive added several CheckBoxes to my website but i want the checkbox to copy the choices that have been chosen and compile a list of all the domains chosen to either another page or a txt file

Check out Gday.ca for what im talking about

<inputtype="checkbox"name="vehicle"value="THIS IS A WEBSITE">
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
There is no id in current setting of your table, each domain should have each id I think, or much better make the domain as an id.. you could do like <td id="your id">, but you will need script to pull out the data.
 
0
•••
<td><input type="checkbox"><p style="color: #000000;"><strong>Drole.xyz</strong></p>
</td>

what code do i add to copy to a message board
the checkbox needs a Script ??
 
0
•••
i'm not sure but you will need another programming language to output the data. Hmm so javascript can read the information put you need to getting it to output the data. I glanced online about javascript output and the idea of having a button which alerts the program to output the data is solid to me.

it seems you might need to use some if thing within the code so that the program knows that if an option is chosen, then do etc (print out data), else do nothing. So find out the if else syntax in javascript i guess. I think you can use the print function to output the data. Not sure how to put it as a text file. maybe there is some javascript code to save the generated information in a folder in your website directory.

I think what i was talking about was generating a log file or log text file which goes into some folder in your website directory.

Please note I don't know javascript just read a few pages of it some months ago. Also php might be a good programming language to use for what you are trying to do.
 
0
•••
Well the problem is that im doing it wordpress html, and i think for me to insert any php or javascript will be a nightmare , i figured there would be an html function that allows the button to do something
 
0
•••
I don't think it might be a nightmare though. simply insert the javascript code in the html ( I cant remember whether you insert it in the head or body section) . also there is a code to generate an html button.
Once you can edit the wordpress html code then I think you can add other languages into the script.

also php might be easier to use (don't know never really read much of php). i think what you want to do is generate a page that shows all the items selected and probably has confirm button. This seems like code that is part of a shopping cart script. php has such scripts but not sure whether they are reliable.

what you need is code for your order confirmation page and you need to link the page you have the options with to this page. maybe some ahref might be used in there so if you have a button on the homepage that adds up per se the options having ahref behind the button will direct the user to your confirm page (aka the button acts as a link).

Again just what I think, not a professional.
 
Last edited:
0
•••
The link you gave me gday is not working, so I can see what you're talking about.
 
0
•••
0
•••
Are you trying to make it easier for your customers to check the box and then a submit button that will send it to their email?
 
0
•••
Yea or just copy it to the clip board
i dont know the code and or make the checkbox do a function
 
0
•••
Oh okay gotcha! Yeah the coding would be php and mysql that'll send out the output.
 
1
•••
If you want a list of the selected domains to be compiled separately so that the customer can paste it else where to contact you, then JavaScript and HTML are enough to accomplish your task.
 
1
•••
ok deos anyone got the code to do that ?<td><input type="checkbox"><p style="color: #000000;"><strong>Drole.xyz</strong></p>
</td>
 
0
•••
Is there no plugin you can use for this?
https://wordpress.org/plugins/

You can use PHP or Javascript (or others). With PHP you need to name each checkbox with a unique identifier so that when the user POSTs the data (presses submit) it can be identified and retrieved using PHP's $_POST Superglobal.

It's difficult to help here as the site doesn't allow code block and mucks up the code

If you read this answer: http://stackoverflow.com/a/1010970
The "food[]" creates an array with the data for every checkbox that is ticked and submitted, and the value could be the domain name which you echo out on the next page or save to a file.
In your case instead of name="food[]" you'd have something like name="domain[]". then on another page which you POST to (using PHP POST method) you can loop the array $_POST['domain'] and echo out each domain they chose (Or use "print_r()", depends on what you want). You could use GET (url parameters) instead of POST if preferred.

Your list is not in a form either, you'd need to wrap the list in a form and define an action (POST, or GET, and the page you want to send the user to). Then you'd just make your form submit to whatever page or PHP template file you want, and output the POSTed data.


(Additionally, just above your list it states "get em cheap before there gone" - it should be "they're" :))
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back