I have created a form and passing dynamic information to the next page through URL.

**edit\_user.php**

```
<form class="w3-container " action='edit_action.php?edit_id=<?php echo $edit_id ?>' method='post' name="form"  id="form-e" role="form">

```

URL view: **<http://localhost/gst_work/bank/edit_user.php?edit_id=64>**

I'm trying to encode Url by urlencode() function to secure data

**below code**

```
<form class="w3-container " action='urlencode(edit_action.php?edit_id=<?php echo $edit_id); ?>' method='post' name="form"  id="form-e" role="form">

```

this return semicolon error every time.

i also want to get this url value in next page i.e. **edit\_action.php** page. how this can be achieved with decodeurl() function, right now i'm directly using $\_GET['edit\_id'] method.

**And what can be different ways for handling and securing URL data in php apart from encodeurl or session ?**