You are here: Passing variables « PHP Programming Language « IT news, forums, messages
Passing variables

Posted by Garry Jones on 04/12/06 19:15

I allows users to enter data in a form. I process the form with a php file.
I return control to another page on my website. I want to dynamical create
the page that they are returned to so I can show them a copy of what they
just entered. I cant get the syntax of this. My host is set to globals on
and php 4.

Example
Form

<FORM method="post" action="process_this.php" name="anmals" id="anmals" >
<TABLE width="400" BORDER="2" CELLSPACING="0" cellpadding="4">
<td >Name</td>
<td ><input type="text" size="45" name="realname" value= ""></td>
</TABLE>
</FORM>

process_this.php
$realname=$_POST['realname'];
Header("Location: index5c.html")

On index5c.html I want to use $realname to display the data the user entered
on the form. There is something I am missing here as I am getting "null"
back. I have tried various combinations of commands which I wont go into
here. Can someone explain how I can pass the user data to index5c.html and
display it.

Garry Jones
Sweden

 

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

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