php - Processing user input to dynamic webpage -
my webpage has problem want take user input (text/select values , pictures) , process them new html page has title same in have dragndrop area pictures pushes image /uploads
all happen when user presses submit button.
<div id="container"> <div id="content-left"> <h1>mbushi të dhënat për kontakt</h1> <form> <label for="title">title</label> <input type="text" name="title"><br> <label for="male">sell</label> <input type="radio" name="option" id="male" value="male"><br> <label for="female">buy</label> <input type="radio" name="option" id="female" value="female"><br><br> g <input type="submit" value="submit"> </form> </div> <div id="dropbox"> <span class="message">zhvendosni fotot këtu për ti ngarkuar.<br><i>limiti 1mb për foto.</i></span> </div>
i'm kind of new php , how process new-made web page pre-defined styles of each.
i have set .php website. miss process user input.
<form action="write_the_path_to_file_here.php" method="get"> <label for="title">title</label> <input type="text" name="title"><br> <label for="male">sell</label> <input type="radio" name="option" id="male" value="male"><br> <label for="female">buy</label> <input type="radio" name="option" id="female" value="female"><br><br> <input type="submit" value="submit"> </form>
then in php check passed page
<?php var_dump($_get) ; if (isset($_get['title'], $_get['option'])){ echo "title , alternative have been submitted" ; } ?>
php html
No comments:
Post a Comment