Apr 28, 2002 #1 Silverhand Technical User Joined Jul 28, 2006 Messages 2 Location DE I have a PHP-page, which is supposed to redirect the user into a HTML-page and send a couple of variables to be inserted into a form on the page. How do I post the variables?
I have a PHP-page, which is supposed to redirect the user into a HTML-page and send a couple of variables to be inserted into a form on the page. How do I post the variables?
Apr 29, 2002 #2 zebedeee Programmer Joined Feb 14, 2002 Messages 5 Location GB Code the HTML page as a PHP page and after the link to the page in the first page add: ?[variable1_name]=[variable1_value]&[variable2_name]=[variable2_value] so if the new page is page2.html, code it as page2.php and make the link in page1.php as: <a href="page2.php?name1=$name1&name2=$name2>link text</a> Upvote 0 Downvote
Code the HTML page as a PHP page and after the link to the page in the first page add: ?[variable1_name]=[variable1_value]&[variable2_name]=[variable2_value] so if the new page is page2.html, code it as page2.php and make the link in page1.php as: <a href="page2.php?name1=$name1&name2=$name2>link text</a>