Answer the question
In order to leave comments, you need to log in
How to organize the pulling of a specific value from the URL into the form?
There is a link domain.com/index.html?subacc4=asdffdsa123
There is a form with < input name="subid" type="hidden" value="{subid}" / >
subacc4 value needs to be inserted into subid somehow
Answer the question
In order to leave comments, you need to log in
< input name="subid" type="hidden" value="<?=$_GET['subacc4'];?>" / >
<?php
$url = 'http://username:[email protected]/path?arg=value#anchor';
print_r(parse_url($url));
echo parse_url($url, PHP_URL_PATH);
Array
(
[scheme] => http
[host] => hostname
[user] => username
[pass] => password
[path] => /path
[query] => arg=value
[fragment] => anchor
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question