我的表单包含各种功能,例如多项选择的选项、范围选择器以及价格、姓名、电话号码和电子邮件字段。我尝试设置表单提交,但我不确定如何从表单中收集所有信息以便发送电子邮件。
我需要帮助生成其他代码。
<form action="{{ url('/services') }}" method="post">
<form class="form-group bg-light row g-3 was-validated">
<div class="ad-selection form-group">
<label for="adType" class="mb-2">Ads:</label>
<select id="adType" class="form-select mb-3" multiple aria-label="adType">
<option value="">Select one or multiple</option>
<option value="tiktok">TikTok Ads</option>
<option value="facebook">Facebook Ads</option>
<option value="instagram">Instagram Ads</option>
<option value="google">Google Ads</option>
</select>
<label for="days">Number of Days: <span class="value-display" id="daysValue">0</span></label>
<input type="range" id="days" min="1" max="30" step="1" value="1" />
<label for="clicks">Number of Clicks: <span class="value-display" id="clicksValue">0</span></label>
<input type="range" id="clicks" min="10" max="1000" step="10" value="10" />
<h3 class="lead fw-light">Price: <span id="totalCost">$0</span></h3>
</div>
<div class="col-md-4 form-group was-validated mt-4 mb-3">
<label for="validationServer01" class="form-label">First name</label>
<input type="text" class="form-control is-valid" id="validationServer01" value="Mark" required>
</div>
<div class="col-md-4 form-group was-validated">
<label for="validationServer02" class="form-label">Last name</label>
<input type="text" class="form-control is-valid" id="validationServer02" value="Otto" required>
</div>
<div class="col-md-12 form-group was-validated mb-3">
<label for="validationServer03" class="form-label">E-mail</label>
<div class="input-group has-validation">
<input type="text" class="form-control is-valid" id="validationServer03" aria-describedby="inputGroupPrepend3 validationServerEmailFeedback" value="[email protected]" required>
</div>
</div>
<div class="col-md-8 form-group was-validated mb-3">
<label for="validationServer03" class="form-label">Phone</label>
<div class="input-group has-validation">
<input type="text" class="form-control is-valid" id="validationServer03" aria-describedby="inputGroupPrepend3 validationServerEmailFeedback" value="+44 76333 89973" required>
</div>
</div>
<div class="col-md-8 form-group was-validated mb-3">
<label for="validationServer04" class="form-label">Country</label>
<div class="input-group has-validation">
<input type="text" class="form-control is-valid" id="validationServer04" aria-describedby="inputGroupPrepend4 validationServerEmailFeedback" value="E.g United kingdom" required>
</div>
</div>
<div class="col-10 form-group was-validated my-3">
<div class="form-check ps-2">
<input class="form-check-input is-invalid" type="checkbox" value="" id="validCheck05" aria-describedby="validCheck05Feedback" required>
<label class="form-check-label" for="validCheck05">
Agree to terms and conditions
</label>
</div>
</div>
<div class="col-12 form-group was-validated">
<button class="btn btn-primary" type="submit">Submit form</button>
</div>
</form>
</form>
这里有开发商吗? 有人帮帮他吧。