GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 07-May-2005, 01:41
oozsakarya oozsakarya is offline
New Member
 
Join Date: May 2005
Posts: 26
oozsakarya is on a distinguished road

using forms in php


hello I want to use forms in php .I have form.html file and I have form.php file.I take name,surname,city e.t.c. from user in form.html and post it form.php .But I can not write users name ,surname etc in form.php. Can you help me?
Last edited by LuciWiz : 07-May-2005 at 05:56.
  #2  
Old 08-May-2005, 16:24
Old_Spen Old_Spen is offline
New Member
 
Join Date: May 2005
Posts: 8
Old_Spen is on a distinguished road
Quote:
Originally Posted by oozsakarya
hello I want to use forms in php .I have form.html file and I have form.php file.I take name,surname,city e.t.c. from user in form.html and post it form.php .But I can not write users name ,surname etc in form.php. Can you help me?

You will have to create php variables for all the data you will be sending from one page to the other.

Lets say in form.html you have:

name, lastname, email which is posted to form.php with method = post

Quote:

you will then create variables in form.php

$name = $_POST['name'];

ditto for the other variables beeing passed along.

you can then confirm the passed variables by using the command:

echo ("$name"); to display this variable or the specific variables;


This should solve the problem.

Cheers.

Old_Spen
  #3  
Old 10-May-2005, 05:15
oozsakarya oozsakarya is offline
New Member
 
Join Date: May 2005
Posts: 26
oozsakarya is on a distinguished road

Thanks


Thank you.I will try it.
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help ! I need help starting up on Php ! onauc MySQL / PHP Forum 11 05-Jan-2005 00:57
Forms and PHP nniehoff MySQL / PHP Forum 2 20-Dec-2004 08:33
uisng php to display php dopee MySQL / PHP Forum 6 14-May-2004 19:40
php software dopee MySQL / PHP Forum 0 04-May-2004 12:26
All the big PHP script collections that matter jrobbio MySQL / PHP Forum 5 06-Jun-2003 17:14

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:12.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.