php redirect to another website on form submit
<form method="POST" action="https://cloudcertification.io/workday-training/">
<button class="mt-4 btn btn-primary btn-block me-4" id="downloadBtn">
Download </button>
<button class="mt-4 btn btn-secondary btn-block me-4"
id="pasteBtn">Paste from clipboard </button>
to below
<input class="mt-4 btn btn-primary btn-block me-4" id="downloadBtn" type="submit" name="Download" value="Download">
if isset name is download that us use in input
if(isset($_POST['Download'])){
<?php
if(isset($_POST['Download'])){
$videodjd=$_POST['url'];
?>
<iframe id="widgetv2Api" src="https://download.ytmp3.su/api/widgetv2?key=a0d0d2393d1b413e32a5fc26b0065492c4634b87&url=<?php echo $videodjd;?>"
width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>
<!-- Put the Library in your <head> tag -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.min.js"></script>
<!-- Put the resizer code after your <iframe> tag -->
<script>iFrameResize({ log: false, minHeight: 400 }, '#widgetv2Api')</script>
<?php
}
?>
Comments
Post a Comment