본인에게는 "자세한 정보를 이메일로 전송"양식에 액세스하는 여러 가지 방법이있는 사이트가 있습니다. 양식에는 자세한 정보를 이메일로 보내고 싶다는 것을 확인할 수있는 체크 박스 목록이 있습니다. 그들이 어떤 페이지에서 왔는지에 따라 확인란을 미리 선택하도록 할 수 있습니까?사전 체크 박스
예를 들어, "제품 12"페이지를 방문하여 양식 링크를 따라 가면 제품 12 페이지에서 양식에 오기 때문에 미리 확인 된 제품 12에 대한 추가 정보를받을 수있는 확인란이 있습니다 .
<form id="formElem" name="formElem" action="" method="post">
<fieldset class="step">
<legend>Personal Details</legend>
<p>
<label for="fullname">Full Name</label>
<input id="fullname" name="username" />
</p>
<p>
<label for="company">Company Name</label>
<input id="company" name="company" />
</p>
<p>
<label for="title">Title</label>
<input id="title" name="title" />
</p>
<p>
<label for="phone">Phone Number</label>
<input id="phone" name="phone" />
</p>
<p>
<label for="email">Email</label>
<input id="email" name="email" placeholder="[email protected]" type="email" AUTOCOMPLETE=OFF />
</p>
</fieldset>
<fieldset class="step">
<legend>Products I'm interested in...</legend>
<p>
<input type="checkbox" name="telematics" value="telematics">Telematics<br>
</p>
<p>
<input type="checkbox" name="controllers" value="controllers">Controllers<br>
</p>
<p>
<input type="checkbox" name="cots" value="cots">Custom-off-the-Shelf<br>
</p>
<p>
<input type="checkbox" name="displays" value="displays">Displays\Operator Interfaces<br>
</p>
<p>
<input type="checkbox" name="cordReels" value="cordreels">Cord Reels<br>
</p>
<p>
<input type="checkbox" name="pdm" value="pdm">Power Distribution Modules<br>
</p>
<p>
<input type="checkbox" name="rtc" value="rtc">Real Time Clock<br>
</p>
</fieldset>
<fieldset class="step">
<legend>Services I'm interested in...</legend>
<p>
<input type="checkbox" name="productDev" value="productdev">Product Development<br>
</p>
<p>
<input type="checkbox" name="desEng" value="deseng">Design Engineering<br>
</p>
<p>
<input type="checkbox" name="dfx" value="dfx">DFX<br>
</p>
<p>
<input type="checkbox" name="transServices" value="transServices">Transition Services<br>
</p>
<p>
<input type="checkbox" name="stratSourcing" value="stratSourcing">Strategic Sourcing<br>
</p>
<p>
<input type="checkbox" name="planning" value="planning">Planning<br>
</p>
<p>
<input type="checkbox" name="manufacturing" value="manufacturing">Manufacturing<br>
</p>
<p>
<input type="checkbox" name="fullfillment" value="fullfillment">Fullfillment<br>
</p>
<p>
<input type="checkbox" name="prodLifecycle" value="prodLifecycle">Product Life-Cycle Management<br>
</p>
</fieldset>
<fieldset class="step">
<legend>Confirm</legend>
<p>Everything in the form was correctly filled
if all the steps have a green checkmark icon.
A red checkmark icon indicates that some field
is missing or filled out with invalid data.
</p>
<p class="submit">
<button id="registerButton" type="submit">Register</button>
</p>
</fieldset>
</form>
서버 측 코드는 PHP 될 것입니다 :
여기 내 양식 코드입니다.
Plz이 응답합니다.
아직 시도한 적이 있습니까? PHP 나 ASP와 같은 서버 측 언어를 사용하고 있습니까? –
그것은 주로 그들이 문제의 페이지에 도착하는 방법과 서버 측 스크립팅 기능이 있는지 여부에 달려 있습니다. 당신은 PHP로'$ _SERVER [ 'HTTP_REFERER']'를 들여다 볼 수도 있지만, 이것은 정말로 의지 할 수 없다. 또는 세션 변수를 마지막으로 본 항목으로 설정할 수 있습니다. – BenM
_ "어떤 페이지에서 왔는지에 따라 확인란을 미리 선택하도록 할 수 있습니까?" 너 뭐 해봤 니? 필요한 경우 자세한 정보와 코드를 제공해야합니다. – j08691