Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

post

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

post

Postby lanana » Tue Jul 02, 2013 4:43 pm

Hi!, it is posible to make a post from a form to another page posting wich variables i wish to load

for example
from my form post a variable 'post1' with the example.php as a value and the other page loads
<?
$post1 = $_POST['post1'];

php include $post1;

?>


something like that, thank you.
lanana
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Jun 25, 2013 1:07 pm

Re: post

Postby johnj » Tue Jul 09, 2013 12:09 am

$post1 is available in the next page, why do you want to include it? Further, you cannot include a variable, you can include a file.
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 7 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.