您好我需要編寫代碼的表單,查詢外部網站與三個提交按鈕。並且每個提交按鈕將發送一些通用的輸入字段和一些與特定個人身體相關的字段。我相信我需要使用JavaScript,但我不確定我能做些什麼。以下是表格的結構。表單與多個提交按鈕,查詢外部網站
<form action="external website" method="post">
{{ form_with common input selectors }}
<!-- if submit Option one is used -->
<input type="text" name="fixed" value="option one">
<!-- if submit Option two is used -->
<input type="text" name="fixed" value="option two">
<!-- if submit Option three is used -->
<input type="text" name="fixed" value="option three">
<input type="submit" name="Option one" value="option one" />
<input type="submit" name="Option two" value="option two" />
<input type="submit" name="Option three" value="option three" />
</form>
任何專家的幫助將不勝感激!
收藏分享
行動網址是否會有所不同 –
我做了一些我認爲與今天工作時非常相似的事情。但我不確定你需要完成什麼。你能澄清嗎? – user1596138
我會寫一個例子。 – user1596138