2
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by vaultdweller123
0

u dont need to include a file to accomplish that... u can have a variable... and assign values to it... then insert in the url

0

That's what I thought I'd have to do, but didn't know where to start.

I also want the variables to be in different files in different directories.

Is that possible?

Thanks very much for all your help vaultdweller123.

BJC

0

okey lets assume you have a textfield where you would input your value.

<?php

if(isset($_POST['btnsubmit'])){
$val = $_GET['val'];
echo "<script>window.location='http://www.domain.co.uk/path/".$val."/path/page.php'</script>";
}

?>

<form method='get'>
<input type='text' name='val' />
<input type='submit' name='btnsubmit' value='submit' />
</form>

i hope i understand you correctly....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.