Jump to content

PHP & java help


nadman123

Recommended Posts

hi guys,

 

in the below code where do i need to put the escape character(\)???

just write the corrected code plz....

 

 

 

 

<script language="javascript">

function confirm_delete()

{

window.location='CustModify.php?custno=

<?php echo $_GET["custno"]; ?>&Action=ConfirmDelete';

}

</script>

 

 

 

thanx in advance......

Link to comment
https://forums.phpfreaks.com/topic/124901-php-java-help/
Share on other sites

Looks like you don't need it but use a function that does it for you...

 

<br />
function confirm_delete()<br />
{<br />
<br />
<?php $_GET["custno"] = addslashes($_GET["custno"]); ?><br />
<br />
window.location=&#039;CustModify.php?custno=<br />
<?php echo $_GET["custno"]; ?>&Action=ConfirmDelete&#039;;<br />
}<br />

Link to comment
https://forums.phpfreaks.com/topic/124901-php-java-help/#findComment-645377
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.