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
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
Share on other sites

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

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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