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.





PHP Forms Sending To Multiple Html


action="action.php" method="POST">
Your name: <input type=text name=name>
You age: <input type=text name=age>
<input type=submit>

Here is a simple form that sends to action.php How can I make this form send to more than one php or html file?




View Complete Forum Thread with Replies

Related Forum Messages:
Sending Forms Via HTML Email
How do I sent content of a PHP form via HTML email?

For example, fields $name, $city, $state, $phone, $location

to HTML:

<p>Congratulations $name from $city, $state with the phone # $phone .
You now get an expense paid trip to $location .

And that HTML outputted in email..so someone checks their email,they
have an HTMl certificate generated from a form in PHP.

View Replies !
HTML Forms Sending Variables To PHP Scripts
I'm using some HTML script to post some variables (see attached HTML code) to a PHP script. When I click on the Submit button a 'File Download' window pops up and when I click on Ok it opens the php script that I'm calling in Notepad.

I'm new to PHP and Apache so is there something in the php.ini file that I may need to change? Or is it my code that needs altering?

View Replies !
Posting Multiple Variables To $_POST Using HTML Forms
This is my code :

<FORM ACTION="php_steptwo001.php" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="duration" VALUE=3>
<INPUT TYPE="HIDDEN" NAME="banner" VALUE="test">
<INPUT TYPE="SUBMIT" VALUE"3 DAYS">
</FORM>

Only the 1st Variable 'duration' gets passed!

View Replies !
Sending Mail: Choice Between Sending Receipt, Or HTML Formatting
I'm using PHP's mail function to send out a message via email.

I would like for this email message to send a receipt when read as well as send an HTML formatted email. Both aspects are important to me.

I know this is a product of the mail header. This is the format I currently have:

mail(to, subject, body, "From: name <email>
Disposition-Notification-To: name<email>
Content-type:text/html;charset=utf-8");

This prompts the email program to send a reciept, but the email message is not in the HTML format, and even contains "Content-type:text/html;charset=utf-8" at the top of the body.

If I switch the order to this format:

mail(to, subject, body, "From: name <email>
Content-type:text/html;charset=utf-8
Disposition-Notification-To: name<email>");

This sends the email with HTML formatting but does not prompt the sending of the receipt. I also get "Disposition-Notification-To: name<email>" at the top of the email message.

This tells me there is a problem in the transition between the headers, which currently is "".

What am I doing wrong?

View Replies !
Sending Forms
I'm having trouble sending all the information I need with a form. I can get the Contact info sent everytime but the Type of Est and How they heard about our company or best time for est does not send. It will send if it is not in tables. But I need the tables to keep the format. The send script is PHP and I can provide a copy of that as well if needed.

View Replies !
Sending Checbox Values Across Forms
I am facing a problem in the following code while sending the value of the checked checkbox across the form. it is notable to recognise the value and says "undefined". can anyone just give a look to the code pls and tell me what could be a problem. Code:

View Replies !
Sending/displaying POST Information Without Using Forms
What I need to do is build onto an existing login form, using POST forms. I would like to have to have to access the existing code, so what I ultimately have to do is write a PHP script that will spoof a form POST.

I have found 2-3 different examples, however none of these will send the post, and then go to that page. All that these scripts do is send the post, and keep you on the existing page.

The return from the form cannot be displayed in the page with the script on it because of licensing issues.

So the script needs to send the POST information to that page, just as a regular form.

View Replies !
Multiple Forms/Multiple Submit
I have a form consisting of five pages. I don't want to program all five pages in one script because it's too much scrolling. So, I'm creating five form scripts, one for each page. When I reach page 2, I would like to show a button which will bring people back to Page 1 and a second button which will bring them to Page 3.

View Replies !
Sending Page To PHP Script That Forms It Into Printer Friendly Format....
How would one go about enclosing the certain elements of a page (specifying them as variables maybe) and sending them to a specific PHP script (if can be done by a PHP script) so when the viewer clicks on the link "printer friendly version" or something of a specific page it sends that data to a PHP file (e.g. printpage.php3) and forms it into text only printable content? Also, how would I go about creating the code for the "printpage.php3" or whatever?

View Replies !
Multiple Forms
I have a page with 10 different forms (each one has name, address, phone, etc.). There is only one submit button for ALL forms. On submit, I need the data from each form to be put into its own row in a MySQL DB. Essentially, 10 forms to 10 rows using one submit button.

Can this be done in the normal fashion, i.e. having each form call the same php process which inserts the data? If this is the case, do I have to name the form input variables differently for each form?

View Replies !
Is It Possible? (Multiple Forms One Record)
Is it possible to insert/append to a single record from multiple forms?

I essentially have a five part survey that is accessed through five html forms, but inserts a single record into a table.

Is this bad design? I split the pages up because the survey was too long. But, the actual table has over 80 fields. Should I break the table up? I would like to maintain a single survey_id (primary key) per record?

View Replies !
Forms And Multiple Php Pages
I'm working on a site which has a form page for users to request information from our company. I have the form working correctly, and a php page which lets the user verify his/her input. On this page, I have a submit button which opens the next php page which sends the email message to our servers regarding the info request.

My problem is that it seems that my variables from the form (i.e. $name, $address, etc.) as well as any variables I created in my first php page can't be passed to the page that contains the mail-sending script. Does anyone know how to pass these variables on?

View Replies !
Submit Multiple Forms At Once?
What I am trying to accomplish doesn't seem totally unique so it very likely the way I am asking the question which is keeping me from finding the answer. This is an expense report problem. I have 3 tables that make up an expense report: expensereport, erDets, and erSplits.

The reason for the 3rd table is that in some cases the employee will need to split an expense into multiple lines due to multiple projects being covered by one expense item. What I want to do is create an interface that makes it seem like the user is entering into just 2 tables (expensereport, details) so the need I have is to combine the 2 tables (erDets, erSplits) into one form -- or at least the appearance of one form. an idea I have is to have just one button that submits both forms. Could I make a button that when clicked would do the following?

1. query one: insert into erDets (form1)
2. retrieve the newly created key --$var = mysql_insert_id()
3. query two: insert into erSplits ($var,  form2)

Maybe there is a better way to accomplish this?

View Replies !
Creating Multiple Forms
i am trying to  do is create a form that start off with a number of options (3)  depending on what the user chooses this will lead them to  another , more comprehensive form , i am trying to  avoid having one long form  that will put people off ... rather allowing them to  to go directly to the form that is relevant to them ,

i have already created these forms i just need to  know how to  make the initial form ( the php for this ) I am as i said a novice  so if somebody knows of a tutorial in this direction that would be great .

View Replies !
Multiple Variable Forms
I am trying to create a form that will autofill variables into the buy it now button. Example

Page 1:

Choose your game
o Silkroad - SRO
o Heroes Online - HO
o Knights Online - KO

Choose Amount
o 10 mil - $7.00
o 20 mil - $13.00
o 30 mil - $18.00

these will have a values like Game name is G1 value is SRO or HO or KO.
Amount name is A1 with a value of 7.00 or 13.00 or 18.00. they will click submit, I would like it to automatically fill in the values on a payment system like with moneybookers payment: Code:

View Replies !
Multiple Forms In 1 Page
im having a bit of trouble with my form, its for an invoice system

I have 2 tables:
Invoices - invoice_id*, cust_id and date
invoice_items - invoice_item_id*, invoices_invoice_id(links to invoice_id in invoices table) item_item_id(links to item_id in item table) description, weight, price

I am trying to create the form for the page so that all the information can be entered at once, but i dont think its possible, because an invoice must be created first then invoice_items added using that invoice id.
how can i get my form to do this? i need it to insert the invoice into the database then take that invoice_id and add it to the item details on the page?

this is what ive written so far but now im stuck on the invoice_id bit Code:

View Replies !
Multiple Actions For Forms ??!
How should the Action part of the form tag look like if i want to peform two or more actions upon Submit click say :

1) change a certain value in the database
2) go to mainpage

View Replies !
Positioning Multiple Forms
I have built a 3 column template for use in eliciting responses to a set of test forms. Each form consists of 'radio' type multiple choice items. All are designed to fit within the same location (div) in the templete. I just do not understand how to locate the form content. In JavaScript that location was simply the defined target, but I am trying to get rid of JavaScript while I am redesigning with CSS. That space will be required during validation and then for the next test to be 'administered' by the master script.

View Replies !
HTML (forms) <->
I have made a PHP program which is able to encode and decode text. To show this to people I made a form in HTML which enables a user to paste text in a textarea, and then choose to either encode or decode this text.

When I open a file directly from the PHP code and encode/decode it the ouput is fine, yet when I use the textarea as input and let the HTML form use the PHP function the output is somehow different.

I first thought perhaps the textarea would add linebreaks and tested this with a simple PHP program[1] which confirmed this was not the case when I use the wrap="virtual" function from textarea. Somewhere there must be some sort of miscommunication between PHP or HTML, or perhaps I did not handle the input flexible enough...

This is test.html which contains the form and which calls test.php to handle the text pasted in the textarea; PHP Code:

View Replies !
Using PHP In HTML Forms?
I have been working on getting sessions to show up on each page. I have a html form and at the top of the page i want to display the session for the users name, and i'm not sure where to put the session information? PHP Code:

View Replies !
HTML Forms
Say you need the form to automatically select the correct month in the dropdown for the user as they have submitted it before. Is there a quick way to do it? What I have been doing is inserting variables like this... s0,s1,s2, etc... and using selected="selected" in the $s variable with the matching number from the database to select the correct one.

I'm thinking there might be an easier way?

<select id="month" name="month">
<option $s0 value="0">Month</option>
<option $s1 value="1">January</option>
<option $s2 value="2">February</option>
<option $s3 value="3">March</option>
<option $s4 value="4">April</option>
<option $etc... value="5">May</option>
<option value="6">June</option>

View Replies !
PHP And HTML Forms
I have a simple username and password log in form. How is it best to verify that the user has actually entered information into the inputs?

I had the idea that i could have the page submit to itself, on submitting it would check the fields for the content, log the user in or not and then forward to the correct page.

It would also be able to throw back error messages to the user easily this way. Only problem im not sure how, or even if you can, forward to another page in PHP code.

If you are interested in seeing what i am doing then go here . Bare in mind that it is nowhere done so easily breakable.

View Replies !
HTML, Forms
I'm making a form for me to add news to the database in html format. However, I don't want to write the html code in a text area in the form. Is there some sort of way with PHP and/or Javascript to build in a WYSIWYG editor or something like how bulliten boards allow users to post new threads/posts (like this form for a new thread) that I can make? I don't want too many complicated features just the basics liek Bold, Italics, Underline, etc. I just want to have it all entered in as HTML into the database so I can echo it out on another page.

View Replies !
HTML Forms...
I'm trying to get a classified ads site up ( - not for business, but to just experiment/learn php n mysql -) but heres the problem I'm having...I have forms where ppl can input their ad's information.

They can input price, email, description, etc. The thing is...I want the description to be able to read html tags that users can put in. Kinda like how you can input html on eBay's item description form.

View Replies !
Multiple Forms Within A Switch Statement
I have to make this administation area where I have multiple Contents
to add edit delete publish .
The problem is that I don't know what is the best way of making the forms.
At the moment I create a new PHP file for add_page.php, add_student.php,
add_news.php, edit_page.php list_page.php and so on.

This way doesn't seem very good to me and I am wondering if I want to put
them in one file or in some more generic files, how am I going to do that.

For start created the content.php and did a switch $_GET['category'] and a
nested $_GET['action'] but I don't know what each case: should contain.

I don't want to put the whole html code for the forms in each case....
I have tried puting each form in a function but I had some stupid errors and
that also doesn't sound to me a good solution.

So if someone has previous experience pls Suggest me something...

View Replies !
Multiple Forms In One Iframe Container
I have one container page "container.htm"
In this container I have multiple iframes "iframepage1.htm",
"iframepage2.htm", etc. and one button firing a js script to submit.
In every iframe page I have multiple input fields.
In the container page I have one iframe page to display results
"'iframeresults.htm".
How can I send all the values of the input fields to one server page
"process.php" where calculations are done and the results are send to the
updated iframe result page?
Let's take a simple example:
in "iframepage1.htm" I put the value 5
in "iframepage2.htm", I put the value 2
with the submit button I will send both input values to the server page
"calc.php" where we calculate the result =10
This result is then send to the iframe result page "'iframeresults.htm" in
the container "container.htm"and is updated.

View Replies !
Create A Multiple Entry Forms
This is what I am trying to do but have no idea where to start (I'm more of a designer then a programmer): I need a form to open in a pop-up window with the following fields as mandatory:

1. Name
2. Company
3. Position
4. Email

On this form there will be a "continue" and "cancel" button.

Cancel - closes window.
Continue - Prompts new form on same pop-up window.

New form (2nd page after someone clicks on continue):

1. Please describe the business requirement.
2. software modification (optional)

On this form there will be a "submit another request" and "finish" button. Submit another request - Opens same page as New Form (2nd page) but will have new values.
Finish - Will submit form by EMAIL and redirect to thank you page.

I need the "submit another request" to create new form pages as many times as the user needs. Is this possible? I can't wrap my mind around this but I was told that I
need to use loops / hidden fields, etc .

View Replies !
Multiple Forms, Different PHP Documents, Same Page?
In a PHP file 'main.php' I have

<?php
include 'header.php';
include 'login.php';
include 'body.php';
include 'footer.php';?>

Login.php has a form on it to allow the user to log in to the site.

Body.php has a form on it to allow a user to post a message.

What I'm finding is that the 'submit' button on 'body.php' actually calls the form from 'login.php'. Does PHP have issues when there are 2 separate forms doing 2 saperate things displayed on the same page - is there anything I need to look out for?

View Replies !
Linked Multiple Autocomplete Forms
This might not be the right place to post this but I thought someone might know where to point me I'm exhausted from endless Google searches on the topic. I'm using scriptaculuos to create an autocomplete field and I have it working fine with php. However, I want to extend this and create two linked forms for a first and last name. e.g.

Select last name from first form field, then select first name for previously selected last names in second autocomplete form. Does anyone know where I could find a tutorial or have an example to do this?

View Replies !
Processing Data From Multiple Forms
i have a web site that has two seperate pages with forms on, the information given in each form needs to go into the same table in a database and in the same record in that table. Is it possible for me to have a php page that will be able to show both sets of data so that i can insert them into my database.

If i use a session for each time a user logs in to my page could i request information stored in the session when the user clicks the button to send the user to the php page, and have the users information they have entered on the past two pages appear on the php page.

View Replies !
Input Validation And Multiple Forms
I am using a content management system written in php. the system allows me to use html blocks.

in one block I have a zip code store search with javascript input validation plus php server side validation if anything makes it past the client side js.

in anotehr block I have another submission form for a sign up with client side javascript validation and php server side validation if anything makes it past the client side.

the javascript validations seem to conflict with each other. By that i mean if i click submit on the one form, the other forms client side validation kicks in.

is there a way to separate the forms in terms of submitting and validation on the client side javascript ? i fire off client side validations with the 'onSubmit()' function by the way.

ALSO, on the zip code entry form I have javascript to prevent them from entering anything but numbers which also conflicts with the other user submissin form. Code:

View Replies !
Multiple Select In Forms And Logging To DB
I am creating a website for a Pharma Distributors Association. The Members could be representing various Pharmaceutical Companies.

A Member could be a distributor for N number of Parent Companies. He Could represent All or N Divisions of a Parent Company. The Parent Companies could be anything from 400 - 600 and will be updated as and when New Companies are found. Code:

View Replies !
Forms To Update Multiple Db Timestamps
I have a php form, which adds an original timestamp to the database, on the update form (new form), I want a person to insert one field of data (who the task is assigned to) which will generate a new timestamp, I have discovered upon updates that the original timestamp is changed, which I do not wish to do.

I need to have yet a second update form, which will record when the task is completed. I am tasked with presenting 3 computer timestamps and not allowing someone to alter the timestamps.

I have tried to echo a timestamp and capture it, I have tried to use the time() function, but none of these seem to work. I am not sure if I am using the correct database structure Code:

View Replies !
Processing Html Forms
I am using php to insert values from an HTML <form> into a mySQL database. I am sending the data using method=post as some of the data may be quite large. Everything works 100% fine except for 1 thing values from the form that are hidden e.g. (<input name="auth" type="hidden" value="105"> ) are passed ok to the php script, but the mySQL insert query fails!

I know this because an echo $auth; produces 105, but no data is entered into the mySQL table. If I change the form to: <input name="auth" value="105">, the mySQL insert query works fine! Data is inserted into the mySQL table!

I have searched high and low to figure out what is going on. I am thinking that it is a fairly simple problem about how hidden values need to be passed, but I simply can't find the answer ;

View Replies !
PHP Or HTML Question On Forms
I have an html file that has a contact form at the bottom.

I didn't write the html file, but it appears that I'm missing
something to actually receive the email. I know of several scripts
that are forms to email, but I'm not sure how to connect it to the
form..

Here is my code:

View Replies !
HTML Forms In Email
I am sending information in a HTML form via emial, along with the
information is a conformation button that the user can click if they
wish to accept the job. On clicking this message i want another mil to
be sent out, however the button that is integrated in the email isn't
working.

Is this possible?
the code for the action of the form is blow..

<?php
$headers .= "MIME-Version: 1.0";
$headers .= "Content-Type: text/html; charset=ISO-8859-1";
$message = "<html><body>";
$message .= "<h1> TEST </h1>";
$message .= "</body></html>";
mail(someone@local.co.uk, "Complete", "$textfield2, $message", $headers);
?>

View Replies !
PHP Not Getting Variables In HTML Forms
Just installed PHP, and Apache. Am having problems with the PHP to
get form data from an HTML file. Specifically, I can not obtain the
variable "tireqty" in a PHP file called by an HTML file. The files'
contents are listed as follow:

-----------------------------
The following is the HTML file
-----------------------------
<form action="processorder.php" method=post>
<table border=0>
<tr bgcolor=#cccccc>
<td width=150>Item</td>
<td width=15>Quantity</td>
</tr>
<tr>
<td>Tires</td>
<td align=center><input type="text" name="tireqty" size=3
maxlength=3></td>
</tr>
<tr>
<td colspan=2 align=center><input type=submit value="Submit
Order"></td>
</tr>
</table>
</form>
-----------------------------
The following is the PHP file 'processorder.php'
-----------------------------
<html>
<head>
<title>abcd</title>
</head>
<body>
<?
echo $tireqty." tires<br>";
?>
</body>
</html>
-----------------------------
I know PHP and Apache are working becasue I am able to to have an HTML
page to load a PHP page to do a for loop and use the "echo" function
to print the loop iterations. So I'm not sure why PHP can't access
the variable "tireqty". Is there some settings in the PHP engine that
I need to check for this?

View Replies !
Working With Html Forms
Let's say you have a html form that allows you to choose three options with radiobuttons (at this case). Well you select one option and click "Submit" to submit the form. Now when the action points to another URL where the actual PHP script is, how to call which option of the three available did the user choose so I can work with it? Code:

View Replies !
HTML Forms Within PHP Code
i want to do is put an "HTML form" from a PHP code, how do i do this ?? is there a way to do it? Code:

View Replies !
Php, Javascript, Html Forms
I've got a few forms with a href in it all on one page. When you click this href, you will go to the page with method='GET'. Later in the script, I use the if (isset ($_GET['name'])). and the user will get the page he asked for. I want to ask how to get these href's to work without using forms. The form I have at this time is: Code:

View Replies !
HTML/PHP Email Forms
I have recently had some trouble with recieving forms sent via html and php. I know that the code is correct, but I have heard that companies like aol and yahoo have problems recieving forms. Anyone know of any goo email companies that recieve html and php forms well?

View Replies !
PHP Validation Of HTML Forms
I am trying to create a php script that will validate the information entered in a HTML form.  If the forms are empty, I would like the user to be given the same screen again, with the incorrect forms highlighted, like in red or something. When the user actually enters the correct information, I would like it then to call a different function that would write to a database.

I don't know how to keep returning the page if the information is incorrect, however. Here is what I have for the initial form: Code:

View Replies !
PHP MySQL Html Forms
In my html file, I have a form:
<form method = "post" action="database.php">
<p>First Name: <input type="text" name="first" />
<p>Last Name: <input type="text" name="last" />
<p>Username: <input type="text" name="username" />
<p>Password: <input type="password" name="pass" />
<p>URL: <input type="text" name="address" />
<p><input type = "submit" value = "Submit" />
</form>

...and then in my database.php file,
$query = "insert into user values('".$first."','".$last."','".$username."','".$pass."','".$address."')";
OR
$query = "insert into user values ('$first','$last','$username','$pass','$address')"

when i use either of these 2 queries my table gets updated with blank values. if i hardcode a value into one of the variables like $first="Bill" then that gets added into the database. So for some reason the form in the html document seems to be posting blank values to the php file.

View Replies !
Arrays In HTML Forms
I started learning html and php a few days ago, and im having trouble with using arrays as names in php forms. The PHP manual doesn't have much info on this, neither does any tutorial on the web.

View Replies !
Converting Two HTML Forms Into One
I currently have a single, small search box in the top right corner of my site (like everyone should). I need to make this search box work with two different search scripts: Site Search and Forum Search. Code:

View Replies !
Making HTML Forms
I am currently in the process of making a fairly large website with a admin panel to control every aspect of the site. I created a function that would simply created the HTML for a single field from an array variable. The array looks like this: PHP Code:

$field_one = array("fieldname" => "field_one", "fieldtype" => "text", "fieldvalue" => $mysql_row['value'], "size" => "50", "maxlength" => "255", "helptext" => "Enter a value...", "fieldrequired" => false, "fieldunique" => false);

I would create an array like that for every field, and then the function would generate the HTML code needed for it. However I still found this to be quite a tedious task. So, I am wondering if anyone else has encountered this type of problem, and if you found a better and quicker way for a project like this.

View Replies !
Multiple Forms - Use A Session Variable That Is An Array?
Let's say I have a page with 10 questions. But I don't want one form, I want 10 forms so the user can answer any of the questions in any order they want and get an answer back immediately. Once the question is answered, it will display the correct answer and whether it was correct/incorrect. Then another question in the page can be answered, and the questions answered previously will still be displayed.

Does anybody know if this is possible? Would I use a session variable that is an array? Or would each question have it's own session variable?

View Replies !
Designing Source Code For Multiple Forms
I want to start writing a new site. It will include 3 forms that will
collect information from the user. I know how to keep the info in
sessions etc. my question is about the design of the server side php
files. I don't want to design all three forms in one big file, id
rather have a separate php file for each form.

Say I have a file form1.php which creates the initial form, should I
say (form1 action="form1.php") and have the form validation code in
form1.php? If so how do I call form2.php from inside form1.php? Or do I
say(form1 action ="form2.php") and have my validation code for form 1
inside form2.php if so how do I call back form1 if validation fails

now this has been asked already (see link below)and it was suggested to
use the include() require() functions. but then others have argued
against it. so is includeonce() the most practical way or should I
rather write all the code in to one big index.php

View Replies !
Sending Multiple Variables Via URL
Hi,

to send a variable in the url, I would use this syntax: address.com?variable=data

What syntax do I need to use to send several variables through using the URL address?

View Replies !
Sending Multiple Emails
I have a little problem with sending multiple e-mails to multiple people. I can't just add recipients onto the "To:" because each e-mail will be different for each person I am sending to.

I have a page sending me multiple variables that relate to different users. Then I go through those variables with a loop, get the related e-mail address, get other info related to that person and other info relating to that variable out of the database and try to send it. It seems to do it and I even get a mailsent - i.e. $mailsent = mail(); - of 1 for all of them, but only the first email ever gets sent. PHP Code:

View Replies !
Sending To Multiple Email
I use a for loop to add the email address to a string like ($postvars is an array that the email address is stored):

$string = null;               
  foreach ($postvars as $value)
  {
  $string .= $value."&&&@&&";
  }

and then I put the string in a hidden field in a form like:

<input type="hidden" value="<?php echo $string?>" name="string">

and then once the form is clicked i use explose to seperate the string like this:

$emailAddress = explode('&&&@&&', $string);
foreach ($emailAddress AS $memail){
//send to email here }

View Replies !
Sending To Multiple Users
i have a sending HTML email page that either entire list, specialization or individual emails. its working. the problem is if you send using entire list or specialization, you can see all the email addresses of all the person. that i emailed when you check the email message. the people that i emailed will definitely get mad because they can see each other's email. hope you could help me send the email so that email can be sent one at a time or as BCC.

View Replies !

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