plodos Posted March 1, 2008 Share Posted March 1, 2008 addnotices.php <form action="savenotices.php" method="post"> <table border="0" bgcolor="#ececec" cellspacing="5"> <tr> <td>Title</td><td> <input name="title" type="text" id="title" value="<?php echo $_GET['title'];?>" size="32"/></td> </tr> <tr> <td>Date</td><td> <input name="date" type="text" id="date" value="<?php echo $_GET['date'];?>" size="32"/> (like 12.12.2008)</td> </tr> <tr> <td valign="top">Notices</td><td><textarea name="notices" cols="100" rows="10" id="notices" ><?php echo $_GET['notices'];?></textarea> </td> </tr> <tr> <td><input name="Submit" type="submit" value="Send"/><font face="arial" size="1"> </font></td> </tr> </table> </form> sendnotices.php <?php $title = $_REQUEST['title']; $date = $_REQUEST['date']; $notices = $_REQUEST['notices']; echo " <br >output is <br><br> $title $date <br><br> $notices<br> "; echo "<br><a href=\"addnotices.php?title=$title&date=$date¬ices=$notices\"> edit notices! </a> <br><br>"; ?> problem is, when I click ""<a href=\"addnotices.php?title=$title&date=$date¬ices=$notices\"> edit notices! </a>"" , addnotices.php page is not showing the content..thats very difficult to explain for me...if you check it your local server you will see the error! for example write the form, more information <a href="http://www.google.com">Search Google!</a> and click the send button, you will see what happened! if I write the link in the form and if I click the Send button, everything is mixing, but if I write normal sentences everything is clear :S Quote Link to comment Share on other sites More sharing options...
plodos Posted March 1, 2008 Author Share Posted March 1, 2008 addnotices.php <form action="savenotices.php" method="post"> <table border="0" bgcolor="#ececec" cellspacing="5"> <tr> <td valign="top">Notices</td><td><textarea name="notices" cols="100" rows="10" id="notices" ><?php echo $_GET['notices'];?></textarea> </td> </tr> <tr> <td><input name="Submit" type="submit" value="Send"/><font face="arial" size="1"> </font></td> </tr> </table> </form> sendnotices.php <?php $notices = $_REQUEST['notices']; echo " <br >output is <br><br> $notices"; echo "<br><a href=\"addnotices.php?notices=$notices\"> edit! go back to form </a> <br><br>"; ?> problem is, when I click ""<a href=\"addnotices.php?notices=$notices\"> edit notices! </a>"" , addnotices.php page is not showing the content..thats very difficult to explain for me...if you check it your local server you will see the error! for example write the form, more information <a href="http://www.google.com">Search Google!</a> and click the send button, you will see what happened! if I write the link in the textarea and if I click the Send button, everything is mixing, but if I write normal sentences everything is clear :S it must work like that but not working ... addnotices.php?notices=http://www.google.com ... Quote Link to comment Share on other sites More sharing options...
dual_alliance Posted March 1, 2008 Share Posted March 1, 2008 I've ran your script on my local computer, it works fine. Is there any other PHP in addnotices.php that you did not show? As this might be causing the script not to display for you. Quote Link to comment Share on other sites More sharing options...
plodos Posted March 1, 2008 Author Share Posted March 1, 2008 well, pls write in the textarea <a href="http://www.google.com"> Search Google! </a> like that and click the send button... and when you click yhe edit link, it must wotk like that addnotices.php?notices=http://www.google.com but i didnt do that:S Quote Link to comment 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.