Generating link Issue

60 Views Asked by At

I want to generate link via on my user choice.

This is the dropbox code in the HTML

<select name="campaign_id">
    <?php foreach ( $campaigns as $campaignID => $value) { ?>
    <option value="<?php echo $campaignID;?>"><?php echo $value->name;?></option>    
    <?php } ?>
</select>

then i save the variable of choice.

$drop = $_POST['campaign_id'];

the token will be transferred to name in the dropdown . then i want the link to generate a link example. The value in $drop is a token value, is it possible to do something like the code below but instead

1

There are 1 best solutions below

1
On
perhaps:

$drop = "www.something.com/" . "$_POST['campaign_id']";