sandy1028 Posted April 27, 2009 Share Posted April 27, 2009 Hi, To the function one parameter is passed. function abc($name){ } $name=abc($name); $name is a variable and some value contains the character ",". If it contains "," it treats as if it has two parameter passed and after "," everything is ignored. How to make it a single variable Link to comment https://forums.phpfreaks.com/topic/155814-escape/ Share on other sites More sharing options...
trq Posted April 27, 2009 Share Posted April 27, 2009 Can we see your actual calling code? It shouldn't work the way you describe. Link to comment https://forums.phpfreaks.com/topic/155814-escape/#findComment-820165 Share on other sites More sharing options...
sandy1028 Posted April 27, 2009 Author Share Posted April 27, 2009 I am passing the argument in POST method from one form to another, i.e from text box to a function Link to comment https://forums.phpfreaks.com/topic/155814-escape/#findComment-820181 Share on other sites More sharing options...
trq Posted April 27, 2009 Share Posted April 27, 2009 Can we see your form? Link to comment https://forums.phpfreaks.com/topic/155814-escape/#findComment-820209 Share on other sites More sharing options...
sandy1028 Posted April 28, 2009 Author Share Posted April 28, 2009 Hi, $val = getValue("Hi, "); function getValue($value){ $param = explode(";",$value) return $param[0]; } This calling works properly. But the value passed in the form of $val = getValue($from['value']); Here after , string after , is ignored Link to comment https://forums.phpfreaks.com/topic/155814-escape/#findComment-820955 Share on other sites More sharing options...
trq Posted April 28, 2009 Share Posted April 28, 2009 I'll try once more. Post some relevent code. Link to comment https://forums.phpfreaks.com/topic/155814-escape/#findComment-820960 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.