help: form textboxes on one page will not show up a variables on second

This is a discussion on help: form textboxes on one page will not show up a variables on second within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I have a redhat 9.0 box running PHP on apache I know php works but this form will not ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-28-2003
jim
 
Posts: n/a
Default help: form textboxes on one page will not show up a variables on second

I have a redhat 9.0 box running PHP on apache
I know php works but this form will not


index.html

---------------



<form method="post" action="reg.php">
<input text="name1" size="20">
<input type="submit" value="submit">
</form>






reg.php

-------------


<?

print "this name is : ";
print $name1;


?>




this will not show what name is on reg.php


thanks you in advance

Jim
Reply With Quote
  #2 (permalink)  
Old 10-28-2003
Stefan Fredriksson
 
Posts: n/a
Default Re: help: form textboxes on one page will not show up a variableson second

jim wrote:
> I have a redhat 9.0 box running PHP on apache
> I know php works but this form will not.


> <input text="name1" size="20">


Here, use <input="text" size="20" name="name1">

Regards
--
Stefan

Reply With Quote
  #3 (permalink)  
Old 11-05-2003
stephen.hook
 
Posts: n/a
Default Re: help: form textboxes on one page will not show up a variableson second

Hi Jim

for your last line try

echo $_POST['name1'];

jim wrote:
> I have a redhat 9.0 box running PHP on apache
> I know php works but this form will not
>
>
> index.html
>
> ---------------
>
>
>
> <form method="post" action="reg.php">
> <input text="name1" size="20">
> <input type="submit" value="submit">
> </form>
>
>
>
>
>
>
> reg.php
>
> -------------
>
>
> <?
>
> print "this name is : ";
> print $name1;
>
>
> ?>
>
>
>
>
> this will not show what name is on reg.php
>
>
> thanks you in advance
>
> Jim


Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT +1. The time now is 10:53 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0