Hi guys,
I need to change my static HTML page (i.e. http://www.mypage.com) with a link (<a href="http://www.mypage.com/form.php"> to a page with dynamic link - if user's URL for my page is
http://www.mypage.com/?123456789 this 9-digit number from URL should appear in the link to the form - http://www.mypage.com/form.php?123456789
Thanks in advance.

Hi guys,
I need to change my static HTML page (i.e. http://www.mypage.com) with a link (<a href="http://www.mypage.com/form.php"> to a page with dynamic link - if user's URL for my page is
http://www.mypage.com/?123456789 this 9-digit number from URL should appear in the link to the form - http://www.mypage.com/form.php?123456789
Thanks in advance.

Question in not clear enough but I think u are asking about URL rewrite techniques.
There are some good examples to do this

http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

Question in not clear enough but I think u are asking about URL rewrite techniques.
There are some good examples to do this

http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

It's not about URL rewrite techniques.
My task is to get the ID (9-digits number) that people put in the URL after static site URL (like http://www.mypage.com/?123456789 to the form in other page http://www.mypage.com/form.php. But firstly people have to see the static site content, not to be redirect. After seeing it if they are ready to feel form this 9-digits number should be transferred from first page to second page URL -
http://www.mypage.com/form.php?123456789

Is this what your looking for??

firstpage.php

<a href="www.yoursite.com/form.php?id=<?php echo "123456789"; ?>">link to the form</a>

form.php

if(isset($_GET['id']))
{
       // would echo 123456789
       $id = $_GET['id'];
       echo $id;
}

As a note it isnt very safe to send information through a URL as this can be bookmarked and start confusing your server.
I would suggest you use sessions to achieve this.
or alternatively if you really want to use forms:

<?PHP
$name = $_POST['name'];
$id = $_POST['id'];
//rest of code whatever
?>

just use

include ('form.php');

and retrieve your $id on any site you need it.
and this cant be viewed by anyone either unless they have a php probe

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.