generalhavre Posted August 7, 2009 Share Posted August 7, 2009 Hello guys, Im trying to send a text like: phpfreaks.com to my php script and it sends it to my frameset like a internet browser: Form send: <div class="upload"> <div class="uploadform"> <form action="" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="302" border="0" cellspacing="2"> <tr> <td background="bg.png"> </td> </tr> <tr> <td> <label> <input name="vid_file" type="text id="vid_file" class="c2" /> </label></td> </tr> <tr> <td> </td> </tr> <tr> <td><label> <input type="submit" name="button" id="button" value="Ladda upp" /> </label></td> <td> </td> </tr> </table> </form> </div> </div> php check: <?php $search_array = array("vid_file" => 1); if (array_key_exists('vid_file', $search_array)) { $new_file = $search_array; $NEW_URL="http://xxx.aaaaa.se/aaaa/visa.php?filename=$new_file"; header("Location: $NEW_URL"); } else { echo "Failed!\n"; } ?> php visa: <frame src="http://<?php echo $_GET['filename'];?>" frameborder="0" marginheight="0" marginwidth="0" noresize="noresize" scrolling="auto"> I just cant get around it, been trying for few hours now been browsing google like a madman I'd be moooore then happy if anyone could push me on right track it would meen alot to me. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/169280-form-to-php/ Share on other sites More sharing options...
cunoodle2 Posted August 7, 2009 Share Posted August 7, 2009 Is it just me or does this looks the workings of a fake banking site??? Link to comment https://forums.phpfreaks.com/topic/169280-form-to-php/#findComment-893268 Share on other sites More sharing options...
generalhavre Posted August 7, 2009 Author Share Posted August 7, 2009 Is it just me or does this looks the workings of a fake banking site??? why? Link to comment https://forums.phpfreaks.com/topic/169280-form-to-php/#findComment-893281 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.