Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Create Form Linked To Html


I need to access an SQL database from a webpage so users can update information directly to the database (in the form of a "form"). There are a few fields from different tables in SQL that I need on the form. I have no idea how to even begin. Someone mentioned that PHP is the way to go and I've started looking through tutorials, but thought I would post the question to see if this is even the right language to use.




View Complete Forum Thread with Replies

Related Forum Messages:
Create A Form In HTML And A PHP Page For Validating The Data Entered Into The Form
I've tried to create a form in HTML and a PHP page for validating the data entered into the form and adding them into a MySQL database.

However, when i tried them out, it happens that after i press the submit button in the HTML page, it just show a blank page instead of what i expect. I've tried several times, but it is still the same and i don't know what is going wrong. Code:

View Replies !
Create A Data Entry HTML Form For Given Table
I am working on a simple web site updating utility for a web site. Rather than hard code the data entry forms, I would like to automactically generate them based upon the table a user selects to update or insert into. What is the best way to approach this?

for "insert" should I use the MySQL DESCRIBE table command and build a form element for each field according to its data type? for "update" should I use the DESCRIBE command to build the form as above and SELECT statement to populate each element with data, or should I just use a SELECT statement to retrieve the data and use php to determine the field type and choose an appropriate form element?

View Replies !
Create A Simple HTML Form That Has The Standard To:, CC:, BCC:, Comments: Etc
I need to create a simple HTML form that has the standard To:, CC:, BCC:, Comments: etc. - but I need for the form to have a drop down list of "Subjects". Depending on which subject the user selects, it should email a different email address for each one for the contact.

The email addresses should be hidden and only server side. Could someone point me to a sample form which has something like this? I've Googled it all over but can't find any examples.

View Replies !
Form Script - Create The Landing Page In Html With Tags
A form that people will enter their info, and when the submit it, they will land on a page that shows the info they submitted for them to double check that it is the correct info before they confirm the submission. I have an idea that I could create the landing page in html with tags like [firstname] and [address], and have the script replace those tags with the matching field data from the form. I just can't figure out HOW to do it.
Sorry if I'm rather incoherent. just spent a long night attempting to figure this out. I'm feeling very, VERY Dense, even with my very limited PHP knowledge.

View Replies !
Form In Php Linked To .htaccess
i am wondering how to link a form on a php page to a .htaccess file for authentication.
is this possible?

View Replies !
Form Processing - Create A Form Processor With Processes The Form To A Page
I have searched the internet for this. I want to create a form processor with processes the form to a page which only certain people can access. I got everything down but the form processing. Does anyone have this code or can you lead me to the right direction?

View Replies !
Create HTML Page
I would like to make a form that once you insert data into the form,it ll automatically create a html format of the data you entered in a html and save it in a folder! How do i go by doing this?

View Replies !
Create An Html Link
Is it possible to create an html link for in internal *.html file where $filename.html is posted from a form?

View Replies !
Create A New Html File
how to open and edit or add a file but ,I don't know how to create a new ".html" or ".txt" file? I have STFW and STFM but still maybe i'm blind.

View Replies !
Create Html Table
tryin to get a table to add a new td /td for every result from the Db. but can't for life of me figure it out...

the nubers are the results and there are 3 required infos from each entry,(abc)
so if there were 4 results it would have a 4a,4b,4c...

its prob really simple but i cant get it! how would i print it via PHP? Code:

View Replies !
Create HTML Emails
I've been trying to create HTML emails but when i receive the email created by this script the link comes out as text do anyone have any idea why this might be? and what apoach would be best to solve it. Code:

View Replies !
How To Create Html List From Such Array ?
I've got an example array like this:

$myArr = array(
array("jj", "0", "jjj"),
array("ee", "0", "eee"),
array("bb", "ee", "bbb"),
array("ll", "ee", "lll"),
array("ff", "0", "fff"),
)

Where each row is an array with columns: id of list element, id of parent
list element ("0" means main node) and content of the element. So, from my
array I'd like to create a list like this:

<ul>
<li>jjj</li>
<li>eee
<ul>
<li>bbb</li>
<li>eee</li>
</ul>
</li>
<li>fff</li>
<ul>

View Replies !
Create Html Table With Php Result?
I'm looking to display 5 records in one rows, from the database. What i mean is, basically, let's take the "emails" as an example. I have a table with 100s of email
addresses. Now i want to display these email addresses on a html table, but i want to display only 5 email adresses per table row, then the next 5 in the next table row and so
on.

View Replies !
PHP Create HTML Email Inserts '!'s
I'm trying to create an email and when it sends the email, it mostly
works except that there are '!' inserted at some spots. Checking the
html source of the email, looks like they are placed at the end of
long lines. I'm assuming there is some issue with the encoding, but
searching through groups, nothing I've tried has worked. Can someone
let me know if I should be doing something differently with my headers
for an html email? I'll change emails to null@null.com. Thanks!

$headers = "X-Mailer: PHP " . phpversion() . "
";
$headers .= "From: null@null.com
";
$headers .= "Reply-To: null@null.com
";
$headers .= "Content-Type: text/html;
";
$headers .= "charset="iso-8859-1"
";
$headers .= "Content-Transfer-Encoding: 7bit
";

View Replies !
Script To Create Html File
I'm looking for a php script that will look in my images folder and for each image in there, create an html file named <imagename>.html and store it in a folder called "pages". I currently use the code  inserted below that scans my image folder, creates an xml file that contains a list of the images and the my Flash image gallery reads the xml file to create the gallery.

but I would rather do it by the method I'm requesting above and get away from flash. Any ideas? Even if there's a way to modify the code below to do what I want, that would be great. Code:

View Replies !
Combining BBcode To Create One Html Tag
I'm working on some BBCode and I was wondering if it is possible to combine two bbcode tags to create one span tag after the preg_replace e.g. Code:

[font=Arial ][b ][color=red ]Text[/color ][ /b][/font ]

HTML Code:

<span style='font-family:Arial;font-weight:bold;color:red;'>Text</span>

instead of HTML Code:

<span style='font-family:Arial;'><span style='font-weight:bold;'><span style='color:red;'>Text</span></span></span>

Of course I'd need it for multiple instances of nested BBcode tags within the same message.

View Replies !
Create A New .html File On My Server...
i have some data in a variable ($message) that is being emailed with
the php's mail() function (an html email actually)...i'd like to also
take that html data in the $message variable and have my script also
make a new .html (with any random name) file on my server with that
$message data, any easy way to do that?

View Replies !
Create HTML File From Mysql Result
I want to create HTML file from Mysql result one row to one HTML file ( below only display ), Code:

View Replies !
Using Includes: Html Form Parse Data Inside 2nd Form.
i'm coming down the stretch, so to speak. i've got a lot of the separate things settled that i need for my main "date entry" form. due to the several data items which need to be collected by this form, i've decided to try using includes, which i've found isn't that tricky at all really.

however, one of my includes needs itself to parse it's own little form data to result in the final entry to be submitted in the "date entry" form. perhaps doing this particular bit as an "include" is NOT the best option? Code:

View Replies !
Read A Directory Files, And Create Echo HTML?
i have a foo/ directory and a foobar/ directory, and a barfoo/ directory in root/

for each directory in root, i'll put x or y or z amount of images in each directory. then, have the php write 01.html with the correct links to a) main image, b) thumb images and prev/fwd links.

we could have separate php files to handle the drawing of the new sequenced .html files in each directory (probably best to pass variables), because they're slightly different, or one to rule them all (sounds like too much work).

then, the syntax would need to be sorted out (so index.html has a link to foo/foo.php?=foo01) would work correctly and draw up 01.html with the correct images, being that index.html would probably have to have hardcoded variable-passing links. eh?

it's sweet, 'cause updating would be fast. upload and delete image files. done. I mean, I know that you could go the database/XML route, but sigh ........

View Replies !
Use Html Form When I Print Value Of One Text Input Of The Form
i have problem with post method , i use html form when i print value of one text input of the form , it prints the value plus the name of the text input plus the = plus the value again.

View Replies !
Create A Form
I'm able to submit and send an e-mail to the desired address and display some information to the screen, but I'm unable to get the information that's typed in the form to display in the e-mail or to the screen.

Worried about loading the HTML code, it's about 500 lines and the PHP code a little over 200 lines - I know I'm missing something (most likely something simple) but I've been working on this all evening and just can't figure it out . . . not sure what to do next other than load the html file and php file.

View Replies !
Using Php To Create A Form
am using php to write a function that reads in lines from a text file and creates a form with the corresponding input values. I have a text file that looks like this:

title = Test Page
checkbox = shoe
checkbox = comb

I can separate these lines into an array, ($array[0] = title, checkbox, checkbox, and $array[1] = Test Page, shoe, comb) but I can't seem to figure out how to get the function to print out each array with its value. For example: if my function reads the line "checkbox = shoe", I have the statement print ("<input type=checkbox name=userbox value=$check>$check");, which should print a checkbox on a form with its value being shoe. While testing, I got it to do that once, but it would only print out a checkbox with shoe like a million times on the page and never stop. It never reads the next line to see what the input will be. I tried to correct this, and now I can't even get it to print that out again. If anybody could help or show me where to get some help, it would be greatly appreciated. Here is where my code acts up:

<?php
$data = file('test_read.txt');
$line = explode("=", $data[1]);
while ($line[0] == 'checkbox'){
$check = $line[1]; 
print ("<input type=checkbox name=userbox value=$check>$check");
}
?>

View Replies !
Create A Form Simply With PHP
I want to know if it is possible to create a form simply with PHP, or if I have to use HTML for it, and if I can use php, how do I send the form data to a flatfile on the server?

View Replies !
PHP To Create PDF With Form Data?
Is it at all possible to create a PDF file using input that is entered from a form?  What I'm interested in doing is creating a detailed online application that the applicant fills out, then once submitted, a PDF is created of the application, where it is then sent to the hiring coordinator and the applicant has an opportunity to view/print their application via the same PDF. 

I know it sounds like a lot, but it's just a thought. Is this remotely workable? If so, where do I start? I'm creating such a form now, but i'm not sure the steps to take after this..

View Replies !
How To Create An Edit Form
<?php

// check if id is passed to this routine
if (isset($_GET['id'])) {
// if yes: remove harmful tags and save the passed id in variable $id
$id = strip_tags($_GET['id']);

//required file for database connection
require("config.php");
echo "<table border=&#391;'>";
// construct SQL statement
$sql = mysql_query("SELECT *FROM iteminfomation WHERE ID='$id'");
$sql1=mysql_query("SELECT NameOfTools,Brand FROM listofitem WHERE ID='$id'");
$information1=mysql_fetch_array($sql1);
$information=mysql_fetch_array($sql);

echo "<table border=&#391;'>";
echo "<tr><td >NameOfTools</th><td >Brand</th><td>date</th></tr>";


echo"<tr><td>{$information1['NameOfTools']}</td>
<td>{$information1['Brand']}</td>
<td>{$information['Date']}</td>";
echo "</table>";
}

View Replies !
Create A Drop Down Form
I'm supposed to create a site that allows users to response to online questions. In particular, I was asked to create a reply button at the end of each question so that when users click the reply button, it will automatically drop down a form (instead of linking to another page) that allows them to type in their response and click the submit button. The information is supposed to be sent through email.

View Replies !
How To Create WYSIWYG Form
How to create WYSIWYG ? like Post New Thread Form in this forum website.

View Replies !
Create A Questionnaire Form
I need to find some code that and I modify some that will allow us to integrate a php form into our website. What we want to do is make a contact/questionnaire form and then have it submitted via email or sent to a MySQL database. I've been learning more and more PHP but time is running out and I can't write something from scratch.

View Replies !
Create A Form With Checkboxes.
I am using the following code to create a form with checkboxes. The checkbox choices are included from a database query. I want the checkbox to show the values from the 'driver' field + the 'salary' field. The current code simply displays the checkbox + a . + the value from 'salary'. Code:

<?php
/* Program name: alldrivercheckboxes.php
* Description: Program displays a list of
* checkboxes from database info for selecting 12 man roster.
*/
//session_start();
//if (@_SESSION['auth'] != "yes")
//{
// header("Location: Login.php");
// exit();
// }
.....

View Replies !
Linked Files
small problem, normally i use this to (ie the define) to include php resource pages which is fine but i want to do the same thing with my linked javascript and css files like so....

define('ROOT', dirname(__FILE__).'/');
echo "<link rel="stylesheet" href="", ROOT, "styles.css" type="text/css">";

but i'm guessing this is a bad idea as it exposes the site root in the page right? whats a good way to do this, ie how do i get the url?

View Replies !
Linked Selector
I want a user to select an item from a mysql query displayed in a dropdown in a form and then populate another form field with data from a second mysql db field captured in the same query.

The query itself works. Both fields from the mysql db are returned. There are around 40 different selections that could possibly be made, each with it's related 2nd field data. Code:

View Replies !
3 Combobox Linked
I have three tables: country, city, university. I want to choose in one combobox country, and after appears all the cities of that country. the same for universities. I don't know the correct keywords for search for tutorials about this. I think i should use AJAX. Can someone give some examples?

View Replies !
Download Linked
Is there a way to download all files (preferably images) on a page via a php script. For example, if a page has a lot of links to pictures, I would want to download all of them. I'm not sure if this is even plausible.

View Replies !
Linked Field
I posted something similar to this in the MySQL section, but now that I've tried (and failed) to make an example of what I'm trying to do, through some really long, tedious, and probably unnecessary PHP, I think I can explain a little better.

$conn = dbConnect();
$cars = mysqli_query( $conn , 'SELECT * FROM `tbl_cars` ORDER BY `manufacturer` ASC;' );
mysqli_close( $conn );
define( 'PATH','images/countries/' );
while ( $car = mysqli_fetch_assoc( $cars ) ) {
//Some other code goes here//
//below is the code regarding the linked tables.
$currcountry = getCountry( $car[ 'manufacturer' ] );
echo PATH . $currcountry[ 'picture' ];
echo $currcountry[ 'name' ];
}

## START ## Get Country Function
function getCountry( $carmanu ) {
$conn = dbConnect();.........

View Replies !
Create And Fill-in Form From MySQL
I am working on an admin page where a user can input data into two text fields. When the the form is actioned the two fields are inserted into a table as a row.

What I want to do is when the user calls up the form, any rows that exsist in the table are inserted into the text fields. So the user will see x number of rows with the text fields on the form (x number being number of rows in table). The data is listed in order as determined by the MySQL query. At the end I want to add two blank text fields.

The user can then edit the data in the text fields which updates the appropiate row or enters data into the bottom (blank) text fields which adds a new row.

This is the query I have to call the data PHP Code:

View Replies !
How To Create A Form Which Submits Data To Itself?
how can i create a form which is when submitted calls itself

i mean what to write in action property of form element

View Replies !
Create A Form With Several Submit Buttons
I want to create a form with several submit buttons, i.e. button1 => do this and button2 => do that, how do i find out which button the user clicked on? PHP Code:

View Replies !
Create A Loop Which Makes A Form
Is it possible for me to create a loop which makes a form for me over and over again until it has done 30? I need this to be repeated over and over, yet everytime it increments the name. So, in this example, it would be thing then thing1 then thing2etc allthe way until thing29. Code:

View Replies !
Re:which Tool To Use To Create Form For A Database?how To Bu
You may want to check Achievo ATK (http://www.achievo.org/atk). It's a
framework for building data management applications with minimal
coding.

View Replies !
Use Form Data To Create XML File?
I like to create a form in an HTML page that will use the data entered into it to display an XML file. Code:

View Replies !
Auto Create Form Fields
is there a way in php to look up a mysql table and use the column headings as form field variables … meaning with this php program the entire table columns are displayed as form fields in the browser ?

No need then to build the form by hand … in this consequence there could be a input type column and a width column which could be used to also automatically create the right types of fields for that particular mysql table …

View Replies !
Trying To Create A Form Which Posts To Oracle
I have tested the connectivity and php can connect to the db instance but I cant get it to do an insert query based on a form. Code:

View Replies !
Create Mail/contact Form
I have a form with the required fields and the necessary php-code. There's also some code to validate if a field is empty or there's an invalid email address. But how can i display error messages (e.g. empty field), in this (same) form. (e.g. at the top of the page) I searching fore several day's but can't find an example.

View Replies !
Create A Form To Sign Up For My New Website.
I would like to create a form to sign up for my new website. The fields are:

Username
Password
Retype Password
Email Address
Date of Birth

I need the Password to come up as *****. I want the form to be sent to my email. I dont want the "mailto:user@hotmail.com"

View Replies !
Create A Cookie That Takes Its Name/value From A Form?
i'm learning PHP at the moment and i'm having a bit of trouble with cookies. I know how to create a single cookie with a set name, but how do I create a cookie that takes its name/value from a form?

The form itself is in a loop that spits out info from a database, and the form name also is taken from the database as it loops through.

I was trying to use the Post method but it didn't work so obviously this isn't the way to do it.

View Replies !
Making A Linked List
I'm trying to create a heirarchical linked list of sorts, and I'm
looking for advice as to how best to set up the arrays. In other
languages, I might use a pointer array to other pointer arrays, but in
PHP, I'm a bit stumped.

What I have is a list of simple, small arrays. I'd like to figure out
the appropriate data structure so that each element knows which
element is it's "parent," and so that each element can have multiple
children. The best way to think of this is like an outline wherein
each fork has a variable number of elements.

The tricky part is that given a specific element, I'd like to be able
to easily list its children's IDs.

I'm storing the individual elements in a MySQL database. So for each
element, I have a field with the data (just text) and a field telling
the unique ID number of the element; and then I suppose I can have an
additional field containing the ID of the parent.

My best guess so far as to how to do this is to read all of the
elements from the database. As they come in one by one, I create an
array for each one to conain a list of its children. When a specific
element comes in, we ask for its parent ID and then add its ID to the
parent's array-of-children.

View Replies !
Anyone Built A Statically Linked PHP?
We'd like to build a version of the command line
PHP (i.e. don't plan on running/building the apache module) and
have it statically linked to minimize other system
dependencies.

Has anyone actually done this? Don't see much on the
web, a few folks offered changing configure to add
LDFLAGS=-all-static , but that doesn't seem to do it?

View Replies !
Word Linked Images
I have the following script:

<?php
$fp = fopen("docs/test3.doc","w+");
fwrite($fp,"Content-Type: application/vnd.ms-word
");
fwrite($fp,"Expires: 0");
fwrite($fp,"Cache-Control: must-revalidate, post-check=0, pre-
check=0");
fwrite($fp,"content-dispositio n: attachment;filename=test3.doc" );
$invoice = "...

View Replies !
Linked Result From A Query
I'm trying to create a query that will return a linked record from a
database that will take me back to an update page with that record so I

can change things in the record.

I'm having trouble finding simple code to do this.

View Replies !
Linked Comboboxes With Php And Mysql
I have created a form to retrieve data from mysql database I want to create two combo boxes for two tables of my data.

When I ma using the one everything is ok but when I add the second they do not work as I do not know what exactly to change in javascript and php code. I am attaching the folder that I have the page.

The name of the page is "linked-combo4.php"
The other tables that I want to add is:

table1: object with fields idnumber,code
table2:obj_description with fields idnumber,no,description

View Replies !
Linked MySQL Tables
I am putting together a Help Desk Automated System. I need to sore different sets of relative data to a user but retrievable based on there Session ID (there account number) (e.g. user info, user posts, user contacts, etc). So I am guessing I need 'linked' tables in mySQL. Not sure how to do that.

I already have one table set up with login info, and user authentication, carrying the Session ID throughout each section. Instead of re-doing any work done (many hours) I would just like to add smaller tables from time to time, easily, but all accessed bu the 'user' based on there Session ID.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved