Reply to Re: passing the '#' character

Your name:

Reply:


Posted by Peter on 12/26/06 14:36

> do a sanity check. Check if that value is even there before you send
> to the other script.
>
> Example:
>
> $data = "#mytext";
> //Note: Adding this might help:
> //$data = urlencode($data);
>
> $url = "myurl.com?text=$data";
>
> echo $url;

I'm sorry, but I'm still not sure how I can change or sanity-check a value
before it is sent to the other script, as it is send via an input form, like
so:


<form method="POST" action="receive_text.php">
<input type="hidden" name="send" value="true">
<input type="hidden" name="validate" value="14y22233323q">
<input type="hidden" name="manual_input" value="true">
<table style="margin-left:3px" height="100%" width="580px" cellspacing="0"
cellpadding="0" border='0'>

<tr>
<td colspan="2" class="support"
style="background-color:#EBF1F4;align:left">
blablabla ... explanation
</td>
</tr>

<tr>
<td class="support" style="background-color:#EBF1F4;align:left">
ID:
</td>
<td class="support" style="background-color:#EBF1F4;">
<input name="input_text" id="input_text" size="70" type="text">
</td>
</tr>

<tr>
<td colspan="2" class="support" style="background-color:#EBF1F4;">
<div align="center">
<input name="send_text" id="send_text" value="Send text" type="submit">
</div>
</td>
</tr>
</table>
</form>

So the end user types or copies text to the ID field and then click the Send
text button.
When receive_text.php gets the value, as far as I can see, the data after
the # is already gone.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация