I need a form with one input (eg. "number") that after sumbit redirects the broswer to http://staticurl/[number].html How can I do?
header('location: http://staticurl/'.$_POST['number'].'html');
Maybe?
Assume a HTML form like
<form action="" method="POST">
<input type="number" name="number">
<input type="submit" name="submit" value="submit">
</form>
Now using php you can redirect
<?php
if(isset($_POST['submit'])){
header("Location: http://staticurl/".$_POST['number'].".html");
}
?>
If header() returns any error then you can do it with javascript inside php like
<?php
if(isset($_POST['submit'])){
echo '
<script>
window.location.href = "http://staticurl/'.$_POST['number'].'.html";
</script>
';
}
?>
Validate the form data before processing it.
How to kill a query running by pd.read_sql and connected by sqlalchemy (or mysql.connector)
Radio and checkbox cannot be checked when inside BootStrap Modal
i am building a social media site and i am currently working on the posts module
I have files on FTP-serverHow i can to move them to my firebase-storage with PHP or javascript? Or maybe someone know how put files from 1C to firebase? Both options are good for me
for some time now I am receiving this warning on two of my sites: