Share this post

Link to post

Share on other sites

Try coming up with a concept, outlining the features your website would need, and ask for it in a more concise format. It's really hard to help someone (Not saying that I would either way) that doesn't even know what they need help with.

I want to start a gold selling website but i don't know php or html so i can't make the website.

You should start by learning those, i'll give you a head start, this is a basic sample of what (I imagine) a gold-to-usd converter would look like. Html for the base, php for the basic logic. Want to make it dynamic, no page refreshing? Look up javascript and learn that too.

<!doctype html><html><head><title> My awesome gold selling site </title><style>
input,select{
padding:3px;
margin:3px;
width:200px;
border:1px solid grey;/* note, it's not a good idea to determine widths using pixels due to different
monitor resolutions and phones and such */}</style><!-- link your CSS here and such --></head><body><h3>Gold to USD Calculator</h3><formmethod="post"><selectname="gameType"><optionvalue="osrs"> OSRS Gold</option><optionvalue="rs3"> RS3 Gold </option></select><br><inputtype="number"min="0"name="goldAmount"placeholder="Amount of gold"required><br><inputtype="submit"value="Convert"name="submit"></form><?php
if(isset($_POST["gameType"])&& isset($_POST["goldAmount"])){//checks if the form was filled out properly/* post is the method the form used to send value from the client to the server
these values get stored in a superglobal variable called $_POST.
You can usually spot superglobal variables by checking their prefix, which is by default $_, you can read
more about superglobal variables here: https://stackoverflow.com/documentation/php/3392/superglobal-variables-php#t=201710021133189423951 */
$gold = $_POST["goldAmount"];
$game = $_POST["gameType"];
$result;/*in this code example, 1million OSRS gp is worth $5 and 1million RS3 gp is worth $2.50
the if statements below determine the game type
then they take the inserted value and divide it by 1 million to get the amount of millions
then multipliy by the conversion number.*/if($game =="osrs"){
$result =($gold/1000000)*5;}elseif($game =="rs3"){
$result =($gold/1000000)*2.5;}//prints out the converted value.
echo $gold ." gp will convert to: $". $result ." (USD)";}?></body></html>

Comments are there to explain what's going on, but please use the internet to aid you, it's vast and full of info