0

我已经建立了一个网站,让用户在确认页面上提交表单数据,其中包含确认页面的 URL 中存在的 GET 数据(这不敏感)。我希望它在按下按钮时,将该页面 URL 上的 GET 数据发送到另一个 URL,这可能吗?

我可能只是复制并粘贴表单并将其设置为隐藏并将值设置为单个值,但这不是我想要做的,因为它会在将来创建额外的工作添加更多表单输入。

编辑:这是表单的代码:

<form action="confirmrequest.php">
        <div id="extracontact">
            <h4>Please choose a method of contacting you in the event more detail from you is required</h4>
            <select name="socialmediatype" required>
                <option>-Choose an option below-</option>
                <option value="Instagram">Instagram</option>
                <option value="Snapchat">Snapchat</option>
                <option value="Whatsapp">Whatsapp</option>
                <option value="Skype">Skype</option>
            </select>
            <br>
            <br>
            Platform Username (or phone for Whatsapp):<br>
            <input type="text" name="contactpin" required>
        </div>
        <br>
        <div>
            <h4>Please enter your email address to receive confirmation email & download link</h4>
            <br>
            Email Address<br>
            <input type="email" name="email" required>
        </div>
        <br>
        <div>
            <h4>Which type of art style are you requesting?</h4>
            <input type="radio" name="style" value="Lineart" required> Lineart - $5<br>
            <input type="radio" name="style" value="Coloured"> Coloured - $6<br>
            <input type="radio" name="style" value="Background & Shading"> Background/Shading - $7<br><br>
        </div>
        <div>
            <h4>Please include a full description of what you would like</h4>
            <textarea name="description" cols="50" rows="10"></textarea>
        </div>
        <br>
        <input type="submit" class="btn btn-primary" value="Submit Request">
    </form>
4

0 回答 0