Newbie here!
I want to use a form in which you select a location and the type of information you would like to view. It takes you to a subdomain like blah.mysite.com/option1.php option1.php being the the type of information the person selected. This is what I have:
<form method="post" action="jump.php">
<table width="100%" border="0">
<tr>
<td colspan="3"><div align="center"><span class="whatareyou">What Are You Looking For?</span></div></td>
</tr>
<tr>
<td width="33%"><div align="center" class="whatareyou">
<input type="radio" name="radio" id="type" value="option1.php">
<label for="type"></label>option 1</div></td>
<td width="33%"><div align="center" class="whatareyou">
<input type="radio" name="radio" id="type" value="option2.php">
<label for="type"></label>option 2</div></td>
<td width="33%"><div align="center" class="whatareyou">
<input type="radio" name="radio" id="type" value="option3.php">
<label for="type"></label>option 3</div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"><div align="center" class="whatareyou">Where Are You Looking?</div></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<select name="url" id="url" style="font-size:24px">
<option value="http://blah.mysite.co/" selected>blah</option>
<option value="http://blahblah.mysite.co/" selected>blahblah</option>
<option value="http://blahblahblah.mysite.co/" selected>blahblahblah</option>
</select>
<input name="button" type="submit" class="button_login" id="button" value="Search">
<br>
</div></td>
</tr>
</table>
</form>
This is what I’m having trouble with:
[php]<?php
session_start();
$url = $_POST[“url”];
$type = $_POST[“type”];
$parsedUrl = $url.’/’.$type;
header(“Location: $parsedUrl”);
?>[/php]
Am I using $parsedurl incorrectly?
Thanks