Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
fwrite php into new php page
Old 05-07-2005, 07:20 PM fwrite php into new php page
Skilled Talker

Posts: 69
Trades: 0
I have an html form posting to and writing a php page. The value is pulled using the post method. How do I put a posted value into the content that's posted into the new page? I cannot figure out how to bring the $webinfo7 variable into the new php page. Any help?

[php ]
$webinfo7=$_POST['Email'];.......

$content="
<?php
require(\"connectdb.inc.php\");
\$table=\"webpagetable\";

\$sql = \"SELECT * FROM webpagetable
WHERE Email = $webinfo7 \";
\$result = mysql_query(\$sql,\$connection) or die(\"Couldn't execute query.\");......
[/php ]

Thanks,
Matt

Last edited by weddingm; 05-07-2005 at 07:28 PM..
weddingm is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-07-2005, 07:51 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
You could assign it to a session variable, or a cookie variable.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to fwrite php into new php page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14772 seconds with 12 queries