Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Form with Template HTML/PHP:need help for sending data to MySQL
Old 01-19-2005, 08:09 AM Form with Template HTML/PHP:need help for sending data to MySQL
Novice Talker

Posts: 5
Trades: 0
hi ppl!
as u can see from the title...i am making a form with HTML and PHP(well not entirely from scratch, just "innovating" it from a script i found).
The surface is done with HTML and i process the data with PHP...therefore i guess my problem here is only concerning the PHP file.
so usually if a form is only done with PHP and the data needs to be sent to MySQL: the common thing to do is set the value to post to db like this:
PHP Code:
<form name="form1" method="post" action="<?php echo $PHP_SELF?>">
<label for="email">E-mail:</label>
  <input type="text" name="email" value="<?php echo (isset($_POST['email'])) ? $_POST['email'] : ""?>">
</form>
but when i am using templating system, my HTML file looks like this:
HTML Code:
 <form action={action} method="post">
<td>Email</td>
<input type="text" name="email" value="{email}">
</form>
where the value is now {email}...and the corresponding .php part is:
PHP Code:
$form =array ("email"=>""); 
so my problem is, how do i send this array from $form to a database??please help
thank you!
jeannie_t is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Form with Template HTML/PHP:need help for sending data to MySQL
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07985 seconds with 12 queries