Associate
Hello all,
I would like some help please! at work we have created a spreadsheet with formulas to price up cost of printing images, I would like to add to our website a simple section with 3 inputs 2 of which customers can input dimensions (eg 10x8) and a third with a drop down to select paper types. The html and css I can do, however I am unable to work out the php ( I have only ever done simple edits to scripts already written).
Here is my html:
What i want to do is, take the input from id:size width multiply by size height and then multiply by a number, then post the result in the disable text input. Is this possible?
Can anyone help or point me in the direction of help for dummies
TIA
GM
I would like some help please! at work we have created a spreadsheet with formulas to price up cost of printing images, I would like to add to our website a simple section with 3 inputs 2 of which customers can input dimensions (eg 10x8) and a third with a drop down to select paper types. The html and css I can do, however I am unable to work out the php ( I have only ever done simple edits to scripts already written).
Here is my html:
HTML:
<div class="box">
<h1>UNDER CONSTRUCTION</H1>
<p style='text-align:center;'> Here you can use our simple pricing form to work out the cost of your print.</p>
<br>
<form>
<div class="form-row">
<div class="col-lg-3">
<input id="size-width" type="text" class="form-control" placeholder="Width">
</div>
<div class="col-lg-1">
<p style='text-align:center;'>X</p>
</div>
<div class="col-lg-3">
<input id="size-height" type="text" class="form-control" placeholder="Height">
</div>
<div class="form-group col-lg-3">
<select id="paper-type" class="form-control">
<option selected>Paper....</option>
<option id="paper1">Fine art Smooth</option>
<option id="paper2">230 Mat</option>
</select>
</div>
<button id="gen-price" type="submit" class="btn btn-primary">Generate Price</button>
</div>
<div class="form-row">
<fieldset disabled>
<div class="form-group ">
<label for="disabledTextInput">Price</label>
<input type="text" id="disabledTextInput" class="form-control" placeholder="Generated Price">
</div>
</div>
</form>
</div>
What i want to do is, take the input from id:size width multiply by size height and then multiply by a number, then post the result in the disable text input. Is this possible?
Can anyone help or point me in the direction of help for dummies
TIA
GM
Last edited: