Jump to content

link error/s ?


plodos

Recommended Posts

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&notices=$notices\"> edit notices! </a> <br><br>";
?>

problem is, when I click ""<a href=\"addnotices.php?title=$title&date=$date&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 form and if I click the Send button, everything is mixing,

but if I write normal sentences everything is clear :S

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/93899-link-errors/
Share on other sites

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 ...

 

 

Link to comment
https://forums.phpfreaks.com/topic/93899-link-errors/#findComment-481165
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.