•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 396,188 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,162 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1133 | Replies: 6
![]() |
•
•
Join Date: Feb 2007
Posts: 41
Reputation:
Rep Power: 2
Solved Threads: 2
First off all, Do you have any knowledge of HTML.
U will need to create a form which would contain some textboxes and a submit button.
Try making this first and get back to us.
U will need to create a form which would contain some textboxes and a submit button.
Try making this first and get back to us.
•
•
Join Date: Feb 2007
Posts: 41
Reputation:
Rep Power: 2
Solved Threads: 2
Each of your form element will have a name associated with it.
So I assume you have something like this:
<form action="emailit.php" method="POST" >
Name:<input type = "text" name="name" />
Address:<input type = "text" name="addr" />
...
...
...
</form>
now to access it on the next page you'll need these variables and pass it to a mail function.
on a file called emailit.php
for a complete options on emailing visit : http://au.php.net/mail
Put both files on a server and test it....
So I assume you have something like this:
<form action="emailit.php" method="POST" >
Name:<input type = "text" name="name" />
Address:<input type = "text" name="addr" />
...
...
...
</form>
now to access it on the next page you'll need these variables and pass it to a mail function.
on a file called emailit.php
PHP Syntax (Toggle Plain Text)
<?php $message="Name: ".$_POST['name']; //same name as in the input form $message.="Address:"$_POST['addr']; mail('myemail@domain.com', $message, 'void' ); ?>
for a complete options on emailing visit : http://au.php.net/mail
Put both files on a server and test it....
Last edited by hussulinux : Jun 11th, 2007 at 3:15 pm.
•
•
Join Date: Oct 2006
Posts: 53
Reputation:
Rep Power: 2
Solved Threads: 0
I would recommend that you visit http://www.w3schools.com, because they have many good tutorials on HTML, CSS, JavaScript and more.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
- dreamweaver, PHP and submit form query (PHP)
- Input Text colour in forms and submit (Graphics and Multimedia)
- Prevent subsequent submits after initial submit (HTML and CSS)
- IE 6.0 browser window closes on submit (Web Browsers)
- Automating survey results to email on submit. (Java)
- php wont submit data into the database (PHP)
- Where do I begin to submit website to search engines. (Search Engine Optimization)
Other Threads in the HTML and CSS Forum
- Previous Thread: css menu in ie7 : a:hover behaviour only on text not on the whole box
- Next Thread: CSS Positioning & Width/Height Issue



Linear Mode