그래서 나는 html과 javascript (저는 프로그래머가 아닙니다)를 사용하여 만든 webform을 가지고 있고 꽤 보이게하는 CSS 코드를 발견했습니다. 내 양식을 내 다른 코드 즉, (<label>, <p> <fieldset>
) 내 원래 코드에 없었어요. 이제 내 document.affiliateForm.afc4.value= somevalue;
문은 모두 해당 필드에 더 이상 쓰지 않고 URL (/index.html?somevalue=x&someothervalue=y
)로 푸시합니다. 아무도이 원인을 알 수 있습니까? 나는이 태그를 변경하기 전과 URL에 푸시 된 값이 모두 정확하기 때문에 모든 것이 작동했기 때문에 이것은 자바 스크립트 때문이 아니라고 확신합니다.url에서 값을 푸시하는 것을 멈추는 형식 javascript
여기에 어떤 도움이 좋을 것
<fieldset>
<legend>How much can you make?</legend>
<form name="affiliateForm">
<p>
<label for="you">How many members will you refer:</label>
<input class="fixed" type="text" name="you">
</p>
<p>
<label for="them">How many members will they refer:</label>
<input class="fixed" type="text" name="them"><br />
</p>
<p class="nolabel">
<button onClick="calculateAffiliate()">Calculate Affiliate Amount</button>
</p>
<br>
<!-- End Entry Fields -->
<!-- Field Names -->
<p>
<label class="matrix">Levels:</label>
<input type="text" name="cst" value="Customer" value="Level" disabled>
<input type="text" name="com" value="Commission" value="Level" disabled>
<input type="text" name="afc" value="Affiliate Commision" value="Level" disabled>
<input type="text" name="pab" value="Platinum Affiliate Bonus" value="Level" disabled>
</p>
<!-- End Field Names -->
<!-- Start Level 1 -->
<p>
<label class="matrix">Level 1:</label>
<input type="text" name="cst1">
<input type="text" name="com1">
<input type="text" name="afc1">
<input type="text" name="pab1">
</p>
<!-- End Level 1 -->
<!-- Start Level 2 -->
<p>
<label class="matrix">Level 2:</label>
<input type="text" name="cst2">
<input type="text" name="com2">
<input type="text" name="afc2">
<input type="text" name="pab2">
</p>
<!-- End Level 2 -->
<!-- Start Level 3 -->
<p>
<label class="matrix">Level 3:</label>
<input type="text" name="cst3">
<input type="text" name="com3">
<input type="text" name="afc3">
<input type="text" name="pab3">
</p>
<!-- End Level 3 -->
<!-- Start Level 4 -->
<p>
<label class="matrix">Level 4:</label>
<input type="text" name="cst4">
<input type="text" name="com4">
<input type="text" name="afc4">
<input type="text" name="pab4">
</p>
<!-- End Level 4 -->
<!-- Start Level 5 -->
<p>
<label class="matrix">Level 5:</label>
<input type="text" name="cst5">
<input type="text" name="com5">
<input type="text" name="afc5">
<input type="text" name="pab5">
</p>
<!-- End Level 5 -->
<!-- Start Level 6 -->
<p>
<label class="matrix">Level 6:</label>
<input type="text" name="cst6">
<input type="text" name="com6">
<input type="text" name="afc6">
<input type="text" name="pab6">
</p>
<!-- End Level 6 -->
<!-- Start Level 7 -->
<p>
<label class="matrix">Level 7:</label>
<input type="text" name="cst7">
<input type="text" name="com7">
<input type="text" name="afc7">
<input type="text" name="pab7">
</p>
<!-- End Level 7 -->
<!-- Start Level 8 -->
<p>
<label class="matrix">Level 8:</label>
<input type="text" name="cst8">
<input type="text" name="com8">
<input type="text" name="afc8">
<input type="text" name="pab8">
</p>
<!-- End Level 8 -->
<!-- Start Level 9 -->
<p>
<label class="matrix">Level 9:</label>
<input type="text" name="cst9">
<input type="text" name="com9">
<input type="text" name="afc9">
<input type="text" name="pab9">
</p>
<!-- End Level 9 -->
<!-- Start Level 10 -->
<p>
<label class="matrix">Level 10:</label>
<input type="text" name="cst10">
<input type="text" name="com10">
<input type="text" name="afc10">
<input type="text" name="pab10">
</p>
<br>
<!-- End Level 10 -->
<!-- Totals -->
<p>
<label for="total1">Total Affiliate Commission:</label>
<input class="fixed" type="text" name="total1">
</p>
<p>
<label for="total2">Total Platinum Affiliate Bonus:</label>
<input class="fixed" type="text" name="total2">
</p>
<p>
<label for="total">Total Payout</label>
<input class="fixed" type="text" name="total">
</p>
<!-- End Totals -->
</fieldset>
</form>
편집 * ****
내가 나타나지의 코드를 유지 않습니다 제안 된 방법 = "POST"를 추가 그러나 URL에서 여전히 필드에서 사라집니다.
이렇게하면 URL을 밀지 못하지만 모든 입력란은 비어 있습니다. 전에 스크립트를 사용하여 필드를 계산으로 채 웁니다. 그것 엑셀 시트처럼 보이기로되어 있습니다. 목적은 귀하가 추천에 대해 할 수있는 것을 보여주기위한 것입니다. – D3TXER