473,769 Members | 4,202 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

q. Getting Multipart Form to move to the next form

Hi -

Having trouble getting a multipart series of forms to move to the next form.
The problem line is:
<form method="post" enctype="multip art/form-data" action="Data_Fo rm1.php">

If the "action" parameter is set to the current form (Data_Form1.php ) then
the data posts to the table correctly, but it does not move to the next form
If the "action" parameter is set to the next form in the series then by
clicking "submit" it moves to the next form, but the data does not post to
the table.

I appreciate any suggestions - Maybe need a separate command is needed to
make it post

TIA

David

Whole sheet is listed below and located at
http://www.teachercards.org/Data_Form.php
<html>

<body>

<?php

if ($submit) {

$conn = mysql_connect(" mysql", "TeacherCar ds", "164333") or die("Cannot
connect to server");

mysql_select_db ("Teachercards" ,$conn) or die("Cannot find database");

$sql = "INSERT INTO Teachers
(School,Email,N ame,Subject,Col lege,Motto,Stor y,Food,Color,Ho bby,Place,Anima l
,Movie,Song,Boo k,Comment)
VALUES('$School ','$Email','$Na me','$Subject', '$College','$Mo tto','$Story',' $
Food','$Color', '$Hobby','$Plac e','$Animal','$ Movie','$Song', '$Book','$Comme n
t')";

$result = mysql_query($sq l);

}

Else

{

// display form

?>

<form method="post" enctype="multip art/form-data" action="Data_Fo rm1.php">

<BODY LINK="#0000ff" VLINK="#800080" BACKGROUND="./wall.jpg">

<br>

&nbsp;&nbsp;&nb sp;&nbsp;<Font Size =5/><B/>Enter information to build your
own Teacher Card: <br></Font Size =5>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;School
Name:&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p
;&nbsp;&nbsp;&n bsp;&nbsp;<inpu t type="Text" name="School", size=30,
maxlength=20>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Email
Address:&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& n
bsp;&nbsp;&nbsp ;<input type="Text" name="Email", size=30, maxlength=20>

<br><br>

&nbsp;&nbsp;&nb sp; Name &nbsp;(e.g. Mr. Lue):&nbsp;&nbs p;&nbsp;<input
type="Text" name="Name", size=30, maxlength=28>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Subjec t&nbsp;(main subject):&nbsp; &nbsp;<input
type="Text" name="Subject", size=30, maxlength=11>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Colleg e
Attended:&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;<input
type="Text" name="College", size=30, maxlength=16>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Motto: &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb s
p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& n
bsp;&nbsp;&nbsp ;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp ;<input type="Text"
name="Motto", size=30, maxlength=28>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Favori te
Food:&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p
;&nbsp;&nbsp;&n bsp;<input type="Text" name="Food", size=30, maxlength=16>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Favori te
Color:&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb s
p;&nbsp;&nbsp;< input type="Text" name="Color", size=30, maxlength=25>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Favori te
Hobby:&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb s
p;<input type="Text" name="Hobby", size=30, maxlength=15>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Favori te
Place:&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb s
p;&nbsp;&nbsp;< input type="Text" name="Place", size=30, maxlength=25>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Favori te
Animal:&nbsp;&n bsp;&nbsp;&nbsp ;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp ;&nbsp;&nbsp;<i n
put type="Text" name="Animal", size=30, maxlength=25>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Favori te
Movie:&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb s
p;<input type="Text" name="Movie", size=30, maxlength=25>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Favori te
Song:&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p
;&nbsp;&nbsp;&n bsp;<input type="Text" name="Song", size=30, maxlength=25>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Favori te
Book:&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p
;&nbsp;&nbsp;<i nput type="Text" name="Book", size=30, maxlength=25>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Untold
Story:&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;
&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;<textarea name="Story",
cols=30, rows=3,wrap=vir tual, maxlength=148></textarea>

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;Commen t/Suggestion:&nbs p;&nbsp;&nbsp;< textarea
name="Comment", cols=30, rows=3,wrap=vir tual,maxlength= 148></textarea>

</B>

<br>

&nbsp;&nbsp;&nb sp;&nbsp;e.g. Can Favorite Food be replaced with Favorite
Sport which is football

<br><br>

&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <input type="submit" name="submit"
value="Upload Information">

</form>

<?php

}

// end if

?>

</body>

</html>
Jul 17 '05 #1
0 1807

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3648
by: Jason | last post by:
Hi folks, I'm trying to create a section of a website with a unique file upload utility. The problem is that in most code and components I find to pass multipart/form data, you need to know the number of files specified to upload. I'm trying to solve this by having one INPUT TYPE=FILE box, and, using javascript, each time someone selects a file, it populates one listbox below it. Once the submit button is pressed, I'm sending the...
6
6105
by: nate | last post by:
Hello, Does anyone know where I can find an ASP server side script written in JavaScript to parse text fields from a form method='POST' using enctype='multipart/form-data'? I'd also like it to parse the filename. <form name='form1' method='POST' enctype='multipart/form-data' action='sub.asp'> <input type='text' name='title1' value='value1'> <input type='file' name='file1'>
4
4580
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET forum). I don't use server controls in it (apart from Page). The problem occurs on the page where visitor can post a new messages. Basically, it's a form with couple of
5
5991
by: Nathan Sokalski | last post by:
I have a user control that contains three variables which are accessed through public properties. They are declared immediately below the "Web Form Designer Generated Code" section. Every time an event is fired by one of the controls contained in the User Control, these variable are reset. Here is my current code (I have a little more to add later, right now I am just concerned about the variables getting reset): Public Class DatePicker2...
7
17336
by: Mark Waser | last post by:
Hi all, I'm trying to post multipart/form-data to a web page but seem to have run into a wall. I'm familiar with RFC 1867 and have done this before (with AOLServer and Tcl) but just can't seem to get it to work in Visual Basic. I tried coding it once myself from scratch and then modified a class that I found on a newsgroup (referenced below). Both seem to be doing the same thing and neither works (or rather, they seem to work but the...
11
2249
by: Siv | last post by:
Hi, I seem to be having a problem with a DataAdapter against an Access database. My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable. I then proceed to update a list to reflect that the 3 items have been deleted only to discover that the 3 items appear, however when I click on them to display their information which runs a datareader over the same database it appears that the data has now gone. I wondered whether...
4
3146
by: pbd22 | last post by:
hi. could somebody tell me, when uploading a file, i know the form where the upload component is must have enctype=multipart/form-data but, is the same true for the form with the server code to handle the upload? thanks.
6
32817
by: Boldgeek | last post by:
I am trying to develop an app that will allow automatic updating of a web form which uses multipart/form-data enctype (as it MIGHT be sending an image) I have an example form, which when submitted displays the results as you would expect. However when I send the same data using the PHP script I get a 400 error: Bad Request
2
6110
by: shadowman | last post by:
So here's the situation: I need to write a PHP script which accepts form submissions using all methods (GET and POST) and all content types (application/x-www-form-url-encoded and multipart/form-data). And for POST method, it has to be able to get the exact bit-for-bit accurate contents of the POST body. Now here's the problem: I'm stuck with POST multipart/form-data. The $GLOBALS only works with application/x-www-form-url-encoded. It...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.