using php commands when posting new page
-
Hi, I want to create a page using wordpress with a form on it, I have done one before (https://blog.teamplaylotto.com/?page_id=13) which works fine.
I want to make another page with a form that can use some variables that I pass to the page within the URL.I can do this by using a seperate php page with https://blog.teamplaylotto.com/testform.php?user=29440&name=andy
the page then gets the variables with
<?
$usernumber=$_GET[‘user’];
$name=$_GET[‘name’];
?>in my form I have
<? echo “<input type=\”hidden\” value=\”$usernumber\” name=\”usernumber\”>\n”; print “$usernumber”;?>
and another for the name variable which passes the variables when it is submittedthe form is submitted to another php script that mails me the results.
how do I pass the variables to the form on the page I created with wordpress using a url?
ie. https://blog.teamplaylotto.com/?page_id=28?user=29440&name=andyis it possible ?
- The topic ‘using php commands when posting new page’ is closed to new replies.