suma237 Posted June 26, 2007 Share Posted June 26, 2007 Code: ( php ) <? $ts = "2007-06-25 21:56:24.375+05:30"; echo "<a href='../php/delete.php?timestamp_event=$ts' >Delete</a>"; ?> now on php page the $_GET[timestamp_event] , removes the '+' sign .why? how can i solve this Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted June 26, 2007 Share Posted June 26, 2007 I don't really understand what you are trying to work out, but here is the Decimal Character equivilant of the + sign. + Regards ACE Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 26, 2007 Share Posted June 26, 2007 what you on about please cheers. wtf is this $ts = "2007-06-25 21:56:24.375+05:30"; Quote Link to comment Share on other sites More sharing options...
suma237 Posted June 26, 2007 Author Share Posted June 26, 2007 $ts is variable which stores the value "2007-06-25 21:56:24.375+05:30 " Quote Link to comment Share on other sites More sharing options...
suma237 Posted June 26, 2007 Author Share Posted June 26, 2007 the output for the above code is 2007-06-25 21:56:24.375 05:30,that is without + sign .why it is displaying like this?how can i solve this? Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 26, 2007 Share Posted June 26, 2007 is this it or what? <?php $ts = "2007-06-25 21:56:24.375+05:30"; $b=str_replace("+"," ",$ts); echo $b; ?> Quote Link to comment Share on other sites More sharing options...
suma237 Posted June 26, 2007 Author Share Posted June 26, 2007 the url will be displaying like this http://localhost/rfff/test.php?timestamp_event=2007-06-25%2021:56:24.375+05:30 but after echo the variable $_REQUEST['timestamp_event']; the output is 2007-06-25 21:56:24.375 05:30 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.