Help Required: Updating Multiple dynamically created rows in database

Hi All,
In my jsp page I am retriving the values from the database and displaying in the jsp page, the columns are studentID and student name. Now for each studentID i am creating two textfields as date of birth and parent name.
my code snippet is as follows
while(rs.next())
<tr>
<td><%=studID%></td>
<td><%=name%></td>
<td><input type="text" name="DOB<%=studID%>"></td>
<td><input type="text" name="PName<%=studID%>"></td>
</tr>
from the above code i am getting dynamically create textfield whose names are
<input type="text" name="DOB10001">
<input type="text" name="PName10001">
and so on now how can i capture all these values and update the corresponding records in the database.
Please help me in this
Thanks in advance

well in that case u can do this
int i=0;
while(rs.next())
<tr>
<td><%=studID%></td>
<td><%=name%></td>
<td><input type="text" name="DOB<%=i%>"><input type="hidden" name="h_DOB<%=i%>" value="<%=studID%>" ></</td>
<td><input type="text" name="PName<%=i%>"></td>
</tr>
<%i++%>
<input type="hidden" name="RecordCount" value="<%=i%>" >
when u submit this for then in the other jsp u can read the data from query string
int li_rec_count = Integer.parseInt(request.getParameter("RecordCount"));
for(int i=0;i<li_rec_count;i++)
String studID = request.getParameter("h_DOB"+i);
String dob = request.getParameter("DOB"+i);
String pName = request.getParameter("pName"+i);
create your sql statment and update for each studID
}

Similar Messages

  • How to handle dynamically created row values when get upadted "please help"

    Hi,
    In my application I have requirement to display the data for specific date when user clicks on viewData. (it shows the entries for that specific days . There may be number of entries). For showing this I have created Value Object and I am setting all the entries for particular selection date to value object and (simply one day entry indicates one instance of my VO if there are 10 entries then I am creating 10 instances of VO and passing this to the actionfor)
    On my JSP page I am displaying that data by using <logic:iterate>
    <logic:iterate id=�myid� name =�nameofform� property =�Listproperty�>
    <tr>
    <td><input type=�text� property=�abc� value=<bean:write name=�myid� property=�propertyinVO�></td>
    // and same for other other values as well
    �.
    </logic:itearte>
    Now I have requirement that if user edit these entries and click on SAVEDATA the updated values should go to the DB.
    As I don�t have property mapped separately I am not able to take updated values of those as they are getting dynamically generated
    Is there is any way by which I can get these updated values.
    I am in badly need of that . Urgent help will highly appreciated.
    Thanks
    Sheena

    Hi, first off, no need to determine what has been checked or not. If the checkbox is checked, on the post, the value will be submitted as part of the request. If the checkbox is not checked, it will not be submitted (it's value will be null). Depending on what you need, I have approached this a number of different ways. One way is to name all checkboxes the same name. If you need to distinguish between two rows in the form, then in the value field for the checkbox, use some type of distinguishing factor, for example,
    <input type=checkbox name=chkName value="1:abc">
    <input type=checkbox name=chkName value="1:def">
    Now, you only have to make one call on the Servlet/JSP receiving the form post, request.getParameterValues("chkName") which will return an array of the non-null Strings that were checked.

  • Help Required - Upload Multiple Documents functionality sometimes disappears in SharePoint 2010

    Hi All,
    We have a web application created in SharePoint 2010 & there we were facing an issue of not able to Upload multiple documents. After doing search on google, we have found that
    pre-requisites for this functionality to be working properly are as follows:
    Client Integration needs to be enabled for the web application.
    The STSUpld.UploadCtl IE add-in must be enabled. (located in C:\Program Files (x86)\Microsoft Office\Office12)
    The 32 bit version of Internet Explorer. The 64 bit version does not support it and neither do other, non IE, browsers.
    Office 2003 or newer on the client.
    After meeting all the above requirements, We are now able to see the Upload Multiple Documents link but we are failing in below 2 scenarios:
    On some machines it is working fine & on some it is not.
    On some machines, this option is available for sometime & sometimes it disappears.
    If any one of you have experienced the same problem, then please help us with your valuable suggestions & possible solution for it.

    Hi Manish,
    We've just been experiencing your initial issue with Office 2007 clients not being able to use the multi-file upload functionality.  Sure enough....turning on presence information in Central Admin fixes the issue.  The strange thing is though that
    when presence is turned off, Office 2003 and 2010 clients still work fine and it's only 2007 clients that fail.  Also this issue appeared to only exist for us inside applications that have been upgraded from MOSS2007 to SP2010.  Any new applications
    of even new site collections within an upgraded application worked fine across all 3 Office versions.
    Coincidently, we're also experiencing the more recent issue you've come across with files not uploading after clicking OK in the ActiveX.  Nothing happens.  Office 2010 clients work fine but 2003 and 2007 clients just don't upload the selected
    files.  We've found a workaround which "fixes" the issue but brings it's own set of problems so it's not ideal.  Here's what we've done...
    1. Open IIS, and navigate to the web where you want to use multi-file upload
    2. Select Handler Mappings and Add Script Map
    3. Set Request Path - shtml.dll
    4. Set Executable - C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\SHTML.dll
    5. Set the name to something meaningful - Multi File Upload
    6. Leave the Request Restrictions as default
    This should fix the issue with files not uploading but unfortunately it also prevents SharePoint Designer from accessing the site.  For the application where we desperately need multi-file upload we can manage without SPD access so it's not the end
    of the world but not ideal.  We've actually got an outstanding incident logged with Microsoft to resolve this issue but they've yet to find a solution for us.  We suggested to MS that we update authentication to Kerberos from NTLM and retry as we
    seem to be getting 401 errors in the call stack so thought that could be related.  We've not yet configured Kerberos so I'm not sure whether this is a solution or not.
    One other point worth mentioning is that SharePoint Designer 2010 (which is free) installs the latest version (14) of the Upload ActiveX and with this installed the uploads work as expected.  Also if you have Silverlight and SPD2010 installed then you
    get a Silverlight control to do the upload which also works fine.  Again, not ideal as rolling out SPD 2010 to affected clients isn't really a suitable solution.
    Sorry I can't be any more help.  Hopefully my findings might point you in the right direction.  If you do find a solution (other than the IIS handler mapping) then please re-post here,
    Good luck,
    Ben

  • Help Required in Steps to create Hgrid Region

    Hi
    Guys
    I want to create a hgrid region in my oaf for some requirement. can any one please help me to create HGrid or Provide Basic steps.
    Please maill me the document to [email protected]
    I Appreciated your people to come out from this issue.
    Regards
    Santhosh Kumar. K
    [email protected]

    Hello
    As I'm not really fluent with English, I tell you that detailed explanations are given in the Help in a chapter entitled: "About Charts"
    As values must be in a header to be used as labels
    and
    as a header can’t be used to display values defined by a formula,
    it’s necessary to use an auxiliary table in a mixed way.
    I assumes that we have a table containing most of our datas. I name it « main »
    I use an auxiliary table named « 4chart ». In this table the column A is a header one.
    As it can’t display formulas, the year values are typed here
    A1 2007
    A4 2010
    In the main table, the block of cells we want to chart is C3 :D6
    In C3 enter a formula grabbing the value of aux table’s A1
    C3 =4chart :: A1
    fill down until C6
    In D3 thru D6 I enter the values.
    Back to the auxiliary table.
    enter the formula
    B1 =main :: D3
    fill down from D3
    thru D6
    Yvan KOENIG (from FRANCE dimanche 27 janvier 2008 15:18:57)

  • Help required with multiple sites

    I am a newbie to this game and am trying to work my way through using the tutorials etc.. I have built one website which has been published using FTP to the host server which is not mac. I am now trying to build another website for a separate domain. So far I have created a 'New Site' which I published to folder which in turn generated additional subfolders in the Sites folder with the new site name and the initial page names. I have now made updates to this including adding additional pages, which show when I am in iWeb but are not present in Finder. Also, when I go to view the provisional site the 'index.html' file is for the first site and therefore I cannot view the new site. Any advice greatly appreciated.

    bothweb wrote:
    I am a newbie to this game and am trying to work my way through using the tutorials etc.. I have built one website which has been published using FTP to the host server which is not mac. I am now trying to build another website for a separate domain. So far I have created a 'New Site' which I published to folder which in turn generated additional subfolders in the Sites folder with the new site name and the initial page names. I have now made updates to this including adding additional pages, which show when I am in iWeb but are not present in Finder. Also, when I go to view the provisional site the 'index.html' file is for the first site and therefore I cannot view the new site. Any advice greatly appreciated.
    I'm a little confused as to what's happening as I'm fairly new myself, but what I've done might work for you as well.
    To create new and separate sites, I move my original domain file (where iWeb is stored) out of its (application support) location and into a folder, named for the site. Then, I open up iWeb with a new domain file for the new site, and put that in its own folder. Basically, I create a separate domain file for each site, so each site is completely and cleanly separate.
    When I publish each site, each also goes to its own folder, also totally separate.

  • Basic help required for multiple files to be opened from Bridge to PS

    Hi
    I am attempting to shave off a few hours from my workflow and because I'm new to Bridge I'm unsure how to do this. I'm pretty sure anyone out there with a small working knowledge of Bridge or CS3 could help me.
    I am attempting to open three instances of the same RAW file into CS3 from Bridge. The three instances, although the same image, need to go through CameraRaw and change the exposure. One normally exposed, one +2 exposure and one -2 exposure. As you may have worked out I am attempting a pseudo-hdr effect with the one RAW file.
    How do I, with just one click, open the file three times, change the exposure each time, and then save the differently exposed files as tiffs?
    If it's ImageProcessor that I need to use then I'll admit I can't quite work out the rules for doing this!
    Any help gratefully received.

    Have a look at this thread.....
    http://forums.adobe.com/thread/623234?tstart=30

  • Help required with multiple buttons

    Hi all, i'm working on a charity project that entails the clicking of buttons in order to purchase a "virtual plot" on a grid system.
    There are hundreds of buttons involved.
    What I need to know are the following :
    a) Is there a way for me to set the actionscripting to a "parent" button then multi copy the button around the grid maintaining the scripting.
    b) When a button is clicked, it goes out to paypal, is there a way to AUTOMATICALLY disable the button once the transaction takes place
        and the user gets re-directed back to the website.
    c) When different buttons are clicked, is there a way to only have the URL of the last clicked button open up......in other words not have a whole
        load of different pages to the same paypal account open. (EG. If I click 20 buttons, I don't want 20 links to paypal open, only the last clicked button)
    I guess there is quite a bit of information I'm looking for help with but I am fairly new to Actionscript. Any help at all is greatly appreciated.
    Many thanks in advance.
    Ray

    a) Is there a way for me to set the actionscripting to a "parent" button then multi copy the button around the grid maintaining the scripting.
    yes, but that's probably not what you want because each button will do exactly the same thing (unless you encode an if-statement that takes different actions based on the objects instance name).  you'll probably want to use a for-loop to encode your buttons so you don't have much typing to do.
    b) When a button is clicked, it goes out to paypal, is there a way to AUTOMATICALLY disable the button once the transaction takes place
        and the user gets re-directed back to the website.
    yes, as long as you setup flash and paypal to communicate when a transaction is completed.
    c) When different buttons are clicked, is there a way to only have the URL of the last clicked button open up......in other words not have a whole
        load of different pages to the same paypal account open. (EG. If I click 20 buttons, I don't want 20 links to paypal open, only the last clicked button)
    yes, but flash needs some way to determine a user has made the final choice.

  • Getting error while creating rows in database

    Hi ,
    I am new to java and currently working on EJBs .
    The tables i have are ABC and XYZ and their columns are
    ABC - fk1,fk2 // these make the composite primary key
    XYZ- fk1 // which is primary key for this table
    I am trying to create multiple rows in ABC table which has a CMR field for the XYZ .
    if i try to create single row there is no error and if i remove the CMR field then also there is no error
    i am getting the following error
    pe8.1|javax.enterprise.system.container.ejb.entity.lifecycle|_ThreadID=16;|JDO74008: Bean 'MonitoredJobRequestTypeBean' method ejbCreate: problems during ejbCreate; parameters: RTO_TESTING_SURESG, 16666
    com.sun.jdo.api.persistence.support.JDOUnsupportedOptionException: JDO76207: Update of a primary key field is not allowed.
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.assertPKUpdate(SQLStateManager.java:4069)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.nullifyForeignKey(SQLStateManager.java:
    please help me
    bye ,
    Suresh

    How can you create multiple rows by calling one entity bean..Each bean is supposed to be reflection of a row of a table rite,....
    please write down your code so that it is easy to understrand your problem
    regards
    shanu

  • How to create Rows in Database with EJB3.0 Entities - Relationship Problem

    Hi,
    I don't have much experience in writing Entity Java Beans, so if some questions are "dummy-questions", I apologize for that.
    Actual state: I have implemented Entity Java Beans with relationships between them. I can deploy them to JBOSS AS and everything is fine. Then, I want to implement a small client to fill the database with some values to check if my Beans are correct.
    Problem: I have three Beans, that have relationships.
    Entity Flight, Entity FlightSeat and Entity Address
    Flight has a OneToMany relationship with FlightSeat and two ManyToOne relationships with Address (for start- and destinationaddress of the flight)
    No, I want to create Values in the database with the Entities, but I don't know how I have to conside the relationships. How can I add a Flight row to the database? Do I have to specifiy the start- and destinationaddress, when saving the entity Flight with Entitymanager.persist()?? Maybe you know a good Tutorial where I can see, how it is possible to fill the tables?
    Here my Implementation:
    Flight.java:
    package at.ac.tuwien.inetappl.entity;
    import java.io.Serializable;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.OneToMany;
    import javax.persistence.Table;
    import javax.persistence.FetchType;
    import java.util.Date;
    import java.util.Collection;
    @Entity
    @Table (name="REL_FLIGHT")
    public class Flight implements Serializable{
         private long flightid;
         private String company;
         private Date duration;
         private Address startaddress;
         private Address destinationaddress;
         private Collection<FlightSeat> seats;
         public Flight() {}
         public Flight(String company, Date duration, Address startaddress, Address destinationaddress)
              this.company=company;
              this.duration=duration;
              this.startaddress=startaddress;
              this.destinationaddress=destinationaddress;
         @Id @GeneratedValue(strategy=GenerationType.AUTO)
         @Column(name="FLIGHT_ID")
         public long getId()
              return this.flightid;
         public void setId(long flightid)
              this.flightid = flightid;
         @Column(name="COMPANY")
         public String getCompany()
              return this.company;
         public void setCompany(String company)
              this.company=company;          
         @Column(name="DURATION")
         public Date getDuration()
              return this.duration;
         public void setDuration(Date duration)
              this.duration=duration;
         @ManyToOne (optional=false)
         @JoinColumn(name = "START_ADDRESS_ID")
         public Address getStartAddress()
              return this.startaddress;
         public void setStartAddress(Address startaddress)
              this.startaddress=startaddress;
         @ManyToOne (optional=false)
         @JoinColumn(name = "DESTINATION_ADDRESS_ID")
         public Address getDestinationAddress()
              return this.destinationaddress;
         public void setDestinationAddress(Address destinationaddress)
              this.destinationaddress=destinationaddress;
         @OneToMany(cascade = CascadeType.ALL, fetch=FetchType.EAGER, mappedBy="flight")
         //@JoinColumn(name= "SEAT_ID")
         public Collection<FlightSeat> getSeats()
              return this.seats;
         public void setSeats(Collection<FlightSeat> seats)
              this.seats=seats;
    }Address.java:
    package at.ac.tuwien.inetappl.entity;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Table;
    import javax.persistence.Column;
    @Entity
    @Table (name="REL_ADDRESS")
    public class Address implements Serializable{
         private String land;
         private String city;
         private String street;
         private int streetnumber;
         private int postalcode;
         private long addressid;
         public Address() {}
         public Address (String land, String city, String street,
                   int streetnumber, int postalcode) {
              this.land=land;
              this.city=city;
              this.street=street;
              this.streetnumber=streetnumber;
              this.postalcode=postalcode;          
         @Id @GeneratedValue(strategy=GenerationType.AUTO)
         @Column(name="ADDRESS_ID")
         public long getId()
              return this.addressid;
         public void setId(long addressid)
              this.addressid = addressid;
         @Column(name="LAND")
         public String getLand()
              return this.land;
         public void setLand(String land)
              this.land=land;
         @Column(name="CITY")
         public String getCity()
              return this.city;
         public void setCity(String city)
              this.city=city;          
         @Column(name="STREET")
         public String getStreet()
              return this.street;
         public void setStreet(String street)
              this.street=street;
         @Column(name="STREETNUMBER")
         public int getStreetNumber()
              return this.streetnumber;
         public void setStreetNumber(int streetnumber)
              this.streetnumber=streetnumber;
         @Column(name="POSTALCODE")
         public int getPostalCode()
              return this.postalcode;
         public void setPostalCode(int postalcode)
              this.postalcode=postalcode;
    /code]
    FlightSeat.java package at.ac.tuwien.inetappl.entity;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Entity;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.Table;
    @Entity
    @Table (name="REL_FLIGHTSEAT")
    public class FlightSeat implements Serializable {
         private long seatid;
         private String category;
         private int price;
         private boolean available;
         private Flight flight;
         public FlightSeat() {}
         public FlightSeat(String category, int price, boolean available)
              this.category=category;
              this.price=price;
              this.available=available;
         @Id @GeneratedValue(strategy=GenerationType.AUTO)
         @Column(name="SEAT_ID")
         public long getId()
              return this.seatid;
         public void setId(long seatid)
              this.seatid = seatid;
         @Column(name="CATEGORY")
         public String getCategory()
              return this.category;
         public void setCategory(String category)
              this.category=category;
         @Column(name="PRICE")
         public int getPrice()
              return this.price;
         public void setPrice(int price)
              this.price=price;
         @Column(name="AVAILABLE")
         public boolean getAvailability()
              return this.available;
         public void setAvailability(boolean available)
              this.available=available;
         @ManyToOne()
         @JoinColumn(name="FLIGHT_ID")
         public Flight getFlight()
              return this.flight;
         public void setFlight(Flight flight)
              this.flight=flight;
    FlightBean.java - implementing business methods
    package at.ac.tuwien.inetappl.bean;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.ejb.Remote;
    import at.ac.tuwien.inetappl.entity.Flight;
    import at.ac.tuwien.inetappl.entity.Address;
    import at.ac.tuwien.inetappl.entity.FlightSeat;
    import java.util.Collection;
    import java.util.Date;
    import java.util.Iterator;
    import java.io.Serializable;
    import javax.persistence.Query;
    @Stateless
    @Remote(FlightInterface.class)
    public class FlightBean implements FlightInterface, java.io.Serializable {
         //private Collection<Flight> flight;
         @PersistenceContext
         protected EntityManager em;
         /* CRUD METHODS FOR FLIGHT */
         /* CREATE FLIGHT */
         public void createFlight(String company, Date duration, Address start, Address dest)
              Flight flight = new Flight();
              flight.setCompany(company);
              flight.setDuration(duration);
              flight.setStartAddress(start);
              flight.setDestinationAddress(dest);
              em.persist(flight);     
         public void updateFlight(Flight flight)
              em.persist(flight);
         /* DELETE FLIGHT*/
         public void deleteFlight(long id)
               Query q = em.createQuery("DELETE FROM FLIGHT f WHERE f.FLIGHT_ID = :id");
               q.setParameter ("id", new Long(id));
         /* SEARCH METHODS FOR FLIGHT */
         public Collection<Flight> getFlights()
              return em.createQuery("from FLIGHT f").getResultList();
         public Flight getFlight(long id) {
              Flight flight = em.find(Flight.class, new Long(id));
              return flight;
         public String getCompany(long id) {
              Flight flight = em.find(Flight.class, new Long(id));
              String company = flight.getCompany();
              return company;
    }Thanks to all!! I hope somebody can help.
    Greetings,
    RedBaron

    On Wed, 16 May 2007 20:41:21 +0000 (UTC), "bsoliman"
    <[email protected]> wrote:
    >You need to set up virtual directories instead?see
    >
    http://support.microsoft.com/kb/172138
    The actual directories can be wherever
    >is most convenient for you?I keep mine in a folder called
    /clients outside my
    >local web root.
    >
    > Bev
    Understand that virtual directories are not exactly the same
    thing as
    virtual hosts.
    A virtual directory will not act as the root for a site. IIS
    will
    still think that your site root is the overall IIS site root.
    There are some utilities that allow you to switch the folder
    that IIS
    uses as the root. This one works pretty well:
    http://jetstat.com/iisadmin/
    Win
    Win Day, Wild Rose Websites
    http://www.wildrosewebsites.com
    [email protected]
    Skype winifredday

  • Help required in writing And Reading Xml From Database

    Hi
    i m new to java.
    i m facing problem while writing Xml file from Mysql Database in java i m using the WebRowSet
    and also for Reading WebRowSet
    after reading the Xml i have to save this in Database
    (required source code)
    is there any one to help me in this way
    regards
    aamir

    shadab_think_globally wrote:
    {noformat}*hi everybody,
    please send me a ajax with jsp application
    suppose i enter a word in text area ajax will populate/suggest all string from database ,who started
    from that entering character(s).like a google string search.
    please send full source code
    *{noformat}how about you do it yourself?

  • Help Me:NLS - Multiple Language data in a database

    In order to have multilingual data in one oracle database, I am did this:
    1.installed oracle(8i)in NT(this NT also works as a client to feed and get data) with database character to be UTF8( since any kind of data is going to reside)
    2. NLS_LANG TO BE "FRANCE_FRENCH.EE8ISO8859P" in server as I will be using the server terminal to see russian character data ( THIS IS FOR EASTERN LANGUAGE, Apart from English, I am trying to store and retrieve Russian character in the same table)
    3. created a table with NCHAR data type.
    create table test( name nchar(25))
    4. I have the driver installed for English and Russian in my machine.
    5. I log into the SQL PLUS and in seperate worp pad I write an insert statement.
    like:
    insert into test values (n'@KH');
    I copy and paste this insert statement into the SQLPLUS, then it looks like
    insert into test values (n'???');
    when
    I select * from test , I get,
    NAME
    My question are:
    Is this setup OK, or do I have to make some more changes?
    Why can't I type russian letter in SQL PLUS?
    ( I see in one of the Oracle doc in NLS : topic : Locale Data , Heading - Calendar system uses Japanese character in the SQL PLUS directly). So my guess is that I should be able to insert and select these(russian) char as well.
    I will really appreciate , if I can get some feed back on this., I have already spent 3 days on this? Please help meeeeeeeeee.
    Thanks
    Susil
    [email protected]
    null

    Similar request; if there are several different languages used in a database, but a search word can be typed in by anyone and not necessarily in the default language, I still want to be able to pick up all the records (including text in blobs) in any language where my search word = the equivelant word in the other languages; eg. searching on "tree", the search would bring back a document that contained "l'arbre". I then want to set the default language, and allow the user to select a "search in these languages" option to expand the search from the default "tree" to all languages in the database.
    I know about the multi_Lexer but does it extend functionality to this level?

  • Membership form is creating row in database but no information is being inserted?

    The connection is being made to my database but the information in the fields isn't being written to the fields. It just shows up like this:
    This is the code
    Membershipval.php (connection to the database)
    <?php
    define('DB_NAME','db444290179');
    define('DB_USER','dbo444290179');
    define('DB_PASSWORD','hello123');
    define('DB_HOST','db444290179.db.1and1.com');
    define('DB_TABLE','Membership');
    $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_TABLE);
    if (!$link){
              die ('Could not connect: ' . mysql_error());
    $db_selected = mysql_select_db(DB_NAME, $link);
    if (!$db_selected) {
              die('can\'t use' . DB_NAME . ': ' . mysql_error());
    $value1 = $_POST['MembershipType'];
    $value2 = $_POST['BCUMemberType'];
    $value3 = $_POST['Full Name'];
    $value4 = $_POST['Dateofbirth'];
    $value5 = $_POST['Sex'];
    $value6 = $_POST['PhoneNumber'];
    $value7 = $_POST['EmailAddress'];
    $value8 = $_POST['BCUNumber'];
    $value9 = $_POST['BCUMember'];
    $value10 = $_POST['StreetAddress'];
    $value11 = $_POST['Town'];
    $value12 = $_POST['City'];
    $value13 = $_POST['Postcode'];
    $value14 = $_POST['Disability'];
    $value15 = $_POST['MedicalInformation'];
    $value16 = $_POST['Photography'];
    $value17 = $_POST['ContactName'];
    $value18 = $_POST['Relationship'];
    $value19= $_POST['ContactPhoneNumber'];
    echo 'connected successfully';
    $sql = "INSERT INTO Membership (MembershipType, BCUMemberType, FullName, Dateofbirth, Sex, PhoneNumber, EmailAddress, BCUNumber, BCUMember, StreetAddress, Town, City, Postcode, Disability, MedicalInformation, Photography, ContactName, Relationship, ContactPhoneNumber) VALUES ('$value1', '$value2', '$value3', '$value4', '$value5', '$value6', '$value7', '$value8', '$value9', '$value10', '$value11', '$value12', '$value13', '$value14', '$value15', '$value16', '$value17', '$value18','$value19')";
    if (!mysql_query($sql)){
              die('Error: ' . mysql_error());
    mysql_close();
    ?>
    Membership.php (the form)
    <div class="Form" id="Form" align="center">
        <table width="547" height="768" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <th colspan="2" scope="col">Membership Form</th>
          </tr>
          <tr>
            <td align="center"><form name="form13" method="post" action="Membershipval.php">
              <label for="MembershipType">Non BCU-Membership Type</label>
            </form></td>
            <td align="center"><select name="MembershipType" id="MembershipType">
              <option>Select....</option>
              <option value="£15">Junior (U18)/ Student £15</option>
              <option value="£22">Adult £22</option>
              <option value="£35">Family £35</option>
              <option value="£45">Schools/Groups/Clubs £45</option>
            </select></td>
          </tr>
          <tr>
            <td align="center"><form name="form14" method="post" action="Membershipval.php">
              <label for="BCUMemberType">BCU Member Type</label>
            </form></td>
            <td align="center"><select name="BCUMemberType" id="BCUMemberType">
              <option>Select....</option>
              <option value="£13">Junior (U18)/ Student £13</option>
              <option value="£20">Adult £20</option>
              <option value="£31">Family £31</option>
              <option value="£5">Social Members Only £5</option>
            </select></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><b>Personal Information</b></td>
          </tr>
          <tr>
            <td><form name="form2" method="post" action="Membershipval.php">
              <label for="Full Name">Full Name</label>
            </form></td>
            <td><input type="text" name="FullName" id="FullName"></td>
          </tr>
          <tr>
            <td><form name="form3" method="post" action="Membershipval.php">
              <label for="Dateofbirth">D.O.B</label>
            </form></td>
            <td><input type="text" name="Dateofbirth" id="Dateofbirth"></td>
          </tr>
          <tr>
            <td><form name="form12" method="post" action="Membershipval.php">
              Sex
            </form></td>
            <td><table width="200">
              <tr>
                <td><label>
                  <input type="radio" name="Sex" value="Male" id="Sex_0">
                  Male</label></td>
              </tr>
              <tr>
                <td><label>
                  <input type="radio" name="Sex" value="Female" id="Sex_1">
                  Female</label></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><form name="form6" method="post" action="Membershipval.php">
              <label for="PhoneNumber">Phone Number</label>
            </form></td>
            <td><input type="text" name="PhoneNumber" id="PhoneNumber"></td>
          </tr>
          <tr>
            <td><form name="form7" method="post" action="Membershipval.php">
              <label for="Email Address">Email Address</label>
            </form></td>
            <td><input type="text" name="EmailAddress" id="Email Address"></td>
          </tr>
          <tr>
            <td><form name="form4" method="post" action="Membershipval.php">
              BCU Member
            </form></td>
            <td><table width="200">
              <tr>
                <td><label>
                  <input type="radio" name="BCUMember" value="Yes" id="BCUMember_0">
                  Yes</label></td>
              </tr>
              <tr>
                <td><label>
                  <input type="radio" name="BCUMember" value="No" id="BCUMember_1">
                  No</label></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><form name="form5" method="post" action="Membershipval.php">
              <label for="BCU Number">BCU Number</label>
            </form></td>
            <td><input type="text" name="BCUNumber" id="BCU Number"></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><b>Address</b></td>
          </tr>
          <tr>
            <td><form name="form8" method="post" action="Membershipval.php">
              <label for="Street Address">Street Address</label>
            </form></td>
            <td><input type="text" name="StreetAddress" id="Street Address"></td>
          </tr>
          <tr>
            <td><form name="form9" method="post" action="Membershipval.php">
              <label for="Town">Town</label>
            </form></td>
            <td><input type="text" name="Town" id="Town"></td>
          </tr>
          <tr>
            <td><form name="form10" method="post" action="Membershipval.php">
              <label for="City">City</label>
            </form></td>
            <td><input type="text" name="City" id="City"></td>
          </tr>
          <tr>
            <td><form name="form11" method="post" action="Membershipval.php">
              <label for="Postcode">Postcode</label>
            </form></td>
            <td><input type="text" name="Postcode" id="Postcode"></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><b>Medical Information</b></td>
          </tr>
          <tr>
            <td><form name="form15" method="post" action="Membershipval.php">
              <label for="Disability">Disability</label>
            </form></td>
            <td><input type="text" name="Disability" id="Disability"></td>
          </tr>
          <tr>
            <td><form name="form16" method="post" action="Membershipval.php">
              <label for="Medical Information">Medical Information</label>
            </form></td>
            <td rowspan="3"><textarea name="MedicalInformation" id="Medical Information" cols="45" rows="5"></textarea></td>
          </tr>
          <tr>
            <td> </td>
          </tr>
          <tr>
            <td> </td>
          </tr>
          <tr>
            <td colspan="2" align="center"><b>Consent</b></td>
          </tr>
          <tr>
            <td><form name="form17" method="post" action="Membershipval.php">
              Do we have your consent to take photographs
            </form></td>
            <td><table width="200">
              <tr>
                <td><label>
                  <input type="radio" name="Photography" value="Yes" id="Photography_0">
                  Yes</label></td>
              </tr>
              <tr>
                <td><label>
                  <input type="radio" name="Photography" value="No" id="Photography_1">
                  No</label></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><b>Emergency Contact Details</b></td>
          </tr>
          <tr>
            <td><form name="form18" method="post" action="Membershipval.php">
              <label for="Contact Name">Contact Name</label>
            </form></td>
            <td><input type="text" name="ContactName" id="Contact Name"></td>
          </tr>
          <tr>
            <td><form name="form19" method="post" action="Membershipval.php">
              <label for="Relationship">Relationship</label>
            </form></td>
            <td><input type="text" name="Relationship" id="Relationship"></td>
          </tr>
          <tr>
            <td><form name="form20" method="post" action="Membershipval.php">
              <label for="ContactPhoneNumber">Contact Phone Number</label>
            </form></td>
            <td><input type="text" name="ContactPhoneNumber" id="Contact Phone Number"></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><b>Confimation</b></td>
          </tr>
          <tr>
            <td colspan="2"><form name="form21" method="post" action="Membershipval.php">
              <input type="checkbox" name="Terms" id="Terms">
              <label for="Terms">I accept the Terms and Conditions </label>
            </form></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><form name="form22" method="post" action="Membershipval.php">
              <input type="submit" name="Submit" id="Submit" value="Submit">
            </form></td>
          </tr>
          <tr>
            <td> </td>
            <td> </td>
          </tr>
        </table>
    Does anyone have any ideas why this is happening?

    Everyone has to start, somewhere.  I got a lot of help when I started.  Just paying it forward. 
    Glad I could help.
    ^_^

  • Dynamically creating a database block in forms 10g

    hi guys ,
    i got a new requirement ,that is dynamically create a database blocks and items...
    how it is possible..?
    thanks...

    Hello,
    It is not possible. You cannot create blocks or items at runtime. What you can do is to have them created but hidden, then you set them visible as soon as you need them.
    Francois

  • Help with updates for CS6

    I need help installing latest updates for CS6.  I have Win 7 and have tried updating from the Help - Updates menu.  The error is:  U43M1D207.

    Thanks for your response.  I am in the United States in So. Arizona.
    Date: Fri, 5 Oct 2012 12:21:45 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help with updates for CS6
    Re: Help with updates for CS6 created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Crunkle1 you are welcome to work directly with our support team for guided assistance.  If you go to http://www.adobe.com/ and select Help and Contact Us you should be given the option to contact our support team via telephone.  Which country/region are you in?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4752605#4752605
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4752605#4752605
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4752605#4752605. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Create a Access Database file and Dsn dynamically

    hi,
    in my program i have to dynamically create an Acess database (*.mdb) file. i would like to know if it is possible to do so and also if yes then also how to dynamically create a dsn to that dbase.

    hi,
    in my program i have to dynamically create an Acess
    s database (*.mdb) file. It might be possible via OLE/ADO. But that means JNI if you are using standard java.
    A common way around this is to deliver a 'blank' database with the application and just copy it whenever a new database is needed.
    i would like to know if it is
    possible to do so and also if yes then also how to
    dynamically create a dsn to that dbase.Creating a DSN again requires JNI or special tools to manipulate the registry.
    A common way around that is to use a DSN-less connection, so you don't have to create one. If you search this forum you will find examples of the connection string for that.

Maybe you are looking for

  • REG : Logic to define the default purchaser in Purchase org

    Hi SRM Gurus, Need your help and suggestion in one issue. In Standard system default Operational purchaser information responsible for processing shopping cart is not available. The requirement is to determine the Default Operational Purchaser, as in

  • Can't Repair Disk. Format needed?!

    Hi, I Have the black macbook i got about 2 years ago. just recently whenever i use anything like finder, firefox or even safari i would get the hanging balloon thing for a long time. Good thing i have bootcamp with windows 7 or else my computer with

  • How to transform with xquery from CDATA to XML

    Hi everyone I want to transform from CDATA to XML and I don´t know how to do. anyone can help me please? I'm using OSB OEPE PS3, I have artifacts: person.PROXY, person.BIZ, BIZ-Person.WSDL, PROXY-Person.WSDL, Person-response.xq and Person.xsd. I Use

  • I am trying to delete photos from my photo library and it won't let me

    I am trying to delete photos from my photo library but there is no trash can.  How do I delete these photos?

  • Mozilla pages load without style and pictures.

    Yes, I have tried the methods suggested but with no avail. This problem has happened before and solved by tinkering with Java, however, I do not remember or documented how to. Screenshots can be provided if needed.