You are here: Re: getting variables from <FORM>... « All PHP « IT news, forums, messages
Re: getting variables from <FORM>...

Posted by Joseph Melnick on 06/15/05 23:44

Hello Domestos,

What you have presented looks like it should work.

1. check variables case in both files.
2. count $_POST and see how many posted variables are available.
3. echo all variable to the screen you may be surprised at what you find.

Good luck

Joseph Melnick
JM Web Consultants
http://www.jphp.com/





"Domestos" <never.you@mind.net> wrote in message
news:5mHre.23272$cN2.17595@newsfe4-gui.ntli.net...
> heres the html code...
>
> <?php
> $user_name=' ';
> require_once('includes.php');
> do_html_header('register');
> ?>
> <form action="register_new.php" method="post" enctype="text/plain"
> name="register">
> <fieldset><legend>Personal Details</legend>
> <p>
> <label for="user_name" class="label_left"> Login Username :</label>
> <input type="text" name="user_name" size="18" maxlength="16"
> class="input_left" tabindex="11" />
> </form>
> <?php
> ?>
>
>
> and here is the file register_new.php
>
>
> <?php
> require_once('includes.php');
> //create short variable names
> $user_name=$_POST['user_name'];
>
> echo $user_name
>
> ?>
>
>
>
>
>
> And it leaves a blank screen !!!!
>
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация