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 Link to comment https://forums.phpfreaks.com/topic/57241-_gettimespace-not-working/ 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 Link to comment https://forums.phpfreaks.com/topic/57241-_gettimespace-not-working/#findComment-282916 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"; Link to comment https://forums.phpfreaks.com/topic/57241-_gettimespace-not-working/#findComment-282918 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 " Link to comment https://forums.phpfreaks.com/topic/57241-_gettimespace-not-working/#findComment-282919 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? Link to comment https://forums.phpfreaks.com/topic/57241-_gettimespace-not-working/#findComment-282921 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; ?> Link to comment https://forums.phpfreaks.com/topic/57241-_gettimespace-not-working/#findComment-282924 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 Link to comment https://forums.phpfreaks.com/topic/57241-_gettimespace-not-working/#findComment-282928 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.