hiya, is there a code/command/function that can be used in a form scenario, for instance when the submit button is pressed it does the normal get the post and upload onto database but for a certain fieldname it checks it and turns al the spaces into something else? is this possible? if so what is the code for it?
P.S you dont need to put the whole get post and send stuff just the bit of code tht deals with the changing of the spaces.
Much appreciated.
str_replace()
kk so how would tht be implemented?
is it something along the lines of
str_replace(" ","whatever");
Is there anything else? thanx a lot
Well, the manual page I linked to says:
mixed str_replace ( mixed search, mixed replace, mixed subject [, int &count] )
so:
str_replace(" ","whatever", $your_string);