Forum Moderators: coopster
I just joined today and am stuck on a problem.
I have some code:
<script language="javascript" type="text/javascript">
cc_ClientId = 549;
cc_Amount = <? echo $_GET["p"];?>;
ProcessPConversion();
</script>
I need to create a php function to trim the "p" parameter before it goes into that variable above, as the end value coming through with a %20 before the number.
Im not too hot on php so any help very gratefully received! :)
A warm welcome to WebmasterWorld. :)
Try this:
cc_Amount = <? echo trim [php.net]($_GET["p"]);?>;
dc