PHP GET数据转发

时间:2019-10-06 12:49:43

标签: php html

我已经建立了一个网站,使用户可以在确认页面上提交带有确认页面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>

0 个答案:

没有答案