webtuto Posted January 22, 2008 Share Posted January 22, 2008 hi i made a code an when i lick on the button send it redirect to the page dedicace.php the wierd thing is that in the whole script there is not something named dedicace.php <center> <table border=0> <form method="post" action="show.php?id=<?php echo $id; ?>" > <tr><td>nom<td><input type="text" name="name" ></tr> <tr><td>message<td><textarea cols=20 rows=10 name="coms" ></textarea></tr> <tr><td><td><input type="submit" name="send" value="send" ></tr> </form> </table> <?php $name=mysql_real_escape_string(htmlspecialchars(trim(addslashes($_POST['name'])))); $coms=mysql_real_escape_string(htmlspecialchars(trim(addslashes(nl2br($_POST['coms']))))); $date=date("y,m,D"); if($_POST['send']){ if(!empty($name) and !empty($coms) ) { $sql="insert into coms set name='$name' , coms='$coms' , date='$date' , photo_id='$id' "; $res=mysql_query($sql); } } Quote Link to comment https://forums.phpfreaks.com/topic/87208-a-weird-problem-of-redirection/ Share on other sites More sharing options...
rajivgonsalves Posted January 22, 2008 Share Posted January 22, 2008 what exactly is your problem.... Quote Link to comment https://forums.phpfreaks.com/topic/87208-a-weird-problem-of-redirection/#findComment-446062 Share on other sites More sharing options...
beansandsausages Posted January 22, 2008 Share Posted January 22, 2008 what exactly is your problem.... Come you know as well as i do all php freaks are mind readers haha Quote Link to comment https://forums.phpfreaks.com/topic/87208-a-weird-problem-of-redirection/#findComment-446081 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.