Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2005, 07:15 AM
Authorized User
 
Join Date: Jan 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beggininng PHP

I have a problem.
i'm tryin' to learn some PHP from the beginning.
After installation of Apache 1.3 and PHP 4.3.10, phpinfo is shown in the browser with command phpinfo().
it's ok.
But no variable is sent with any form to the .php file.

instead of variables I see nothing

example.

the index.htm file is:

<html>
<head></head>
<body>
<form method=get action="text.php">
blablabla
<input type="text" name="sth">
<br>
<input type=submit>
</form>
</body>
</html>


the text.php file is:

<html>
<body>
Twoj ulubiony autor to:
<?php
echo $sth;
?>
</body>
</html>


In result I see only blablabla

Yo
__________________
Yo
 
Old January 18th, 2005, 11:35 AM
Authorized User
 
Join Date: Jan 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use $_POST['sth'] in your text.php file.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Beg. PHP 5 > Ch. 11 - fetch_field.php crater BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 January 2nd, 2007 12:20 PM
PHP Warning: PHP Startup: Unable to load dynamic l surendran Beginning PHP 1 May 29th, 2006 08:49 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
Beggininng PHP zarol Beginning PHP 7 January 18th, 2005 05:45 PM
Error: movie.php & commit.php on p182-186, ch6 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 12th, 2004 02:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.