Shaun53 Posted January 28, 2014 Share Posted January 28, 2014 (edited) can some one help. Ive managed to make the form i think, but the form is directing to the 3rd party xml database & not echo the information back . i think it needs to be jquery/ajax as its required to load without refreshing the page to allow the information to be grabbed and entered into the listing. Here is a example of the form ive managed to build if you look at the url after its been submitted you can see the structure of the details that are required. <body> <h2>Enter Vehiche Registration Number</h2> <form id = “myform” action=”http://www.w3schools.com/xml/note.xml” method=”GET”> <input type=”hidden” name=”username” value=”password”> <input type=”hidden” name=”mode” value=”test”> <input type=”hidden” name=”key” value=”key1″> <input type=”text” name=”vrm”> <input type=”Submit”/> </form> </body> example xml: <vrm>DG70XSC</vrm><make>FORD</make><model>FOCUS ZETEC CLIMATE 116</model><enhanced_make>FORD</enhanced_make><enhanced_model>FOCUS</enhanced_model><enhanced_derivative>ZETEC CLIMATE</enhanced_derivative><plate_transfer>0</plate_transfer><date_manufactured>2008-02-08</date_manufactured><first_registered>2008-02-08</first_registered><v5c_date>2010-11-10</v5c_date><prior_use>0</prior_use><colour>BLACK</colour><previous_colours>0</previous_colours><colour_change_date>0000-00-00</colour_change_date><last_colour_text/><orig_colour_text/><exported>0</exported><exported_date>0000-00-00</exported_date><imported>0</imported><imported_date>0000-00-00</imported_date><imported_ni>0</imported_ni><scrapped>0</scrapped><scrapped_date>0000-00-00</scrapped_date><unscrapped>0</unscrapped><body>5 DOOR HATCHBACK</body><doors>5 DOORS</doors><seats>5</seats><wheelplan>2 AXLE RIGID BODY</wheelplan><drive_side>RIGHT HAND DRIVE</drive_side><body_description>HATCHBACK</body_description><engine_size>1596</engine_size><engine_number>86DAF26</engine_number><fuel>PETROL</fuel><fuel_delivery>INJECTION</fuel_delivery><max_power>85</max_power><bhp>115</bhp><gearbox_type>MANUAL</gearbox_type><gears>5 GEARS</gears><drive_type>FWD</drive_type><engine_cylinders>4 CYL</engine_cylinders><engine_valves>16V</engine_valves><published_engine_size>1.6 LITRES</published_engine_size><autodata_engine_codes/><co2>157</co2><noise_stationary>81</noise_stationary><noise_engine>4500</noise_engine><noise_drive_by>71</noise_drive_by><keeper_start_date>2010-10-29</keeper_start_date><previous_keepers>2</previous_keepers><prev_keeper_acquire>0000-00-00</prev_keeper_acquire><prev_keeper_dispose>0000-00-00</prev_keeper_dispose><power_to_weight>0</power_to_weight><max_tech_mass>1740</max_tech_mass><gross_weight>0</gross_weight><trailer_braked>1200</trailer_braked><trailer_unbraked>625</trailer_unbraked><smmt_dvla_marque_code>MA</smmt_dvla_marque_code><smmt_dvla_model_code>391</smmt_dvla_model_code><smmt_dvla_description>FOCUS ZETEC CLIMATE 116</smmt_dvla_description><smmt_marque>FORD</smmt_marque><smmt_range>FOCUS</smmt_range><smmt_series>C307</smmt_series><smmt_model_variant_name>ZETEC CLI. P(116/4)</smmt_model_variant_name><smmt_model_variant_visibility_date>2004-12-01 00:00:00</smmt_model_variant_visibility_date><smmt_model_variant_system_setup_date>2004-10-11 00:00:00</smmt_model_variant_system_setup_date><smmt_model_variant_termination_date/><smmt_nominal_engine_capacity>1.6</smmt_nominal_engine_capacity><smmt_engine_capacity>1596</smmt_engine_capacity><smmt_transmission>MANUAL</smmt_transmission><smmt_no_of_gears>5</smmt_no_of_gears><smmt_fuel_type>PETROL</smmt_fuel_type><smmt_driving_axle>FRONT</smmt_driving_axle><smmt_primary_fuel_flag>Y</smmt_primary_fuel_flag><smmt_engine_description>DURA/1.6/VCT/116BHP</smmt_engine_description><smmt_engine_location>FRONT</smmt_engine_location><smmt_engine_make>FORD</smmt_engine_make><smmt_bore>79</smmt_bore><smmt_stroke>81.4</smmt_stroke><smmt_aspiration>NATURALLY ASPIRATED</smmt_aspiration><smmt_cylinder_arrangement>INLINE</smmt_cylinder_arrangement><smmt_no_of_cylinders>4</smmt_no_of_cylinders><smmt_valves_per_cylinder>4</smmt_valves_per_cylinder><smmt_valve_gear>DOHC</smmt_valve_gear><smmt_power_bhp>116</smmt_power_bhp><smmt_power_delivery>NORMAL</smmt_power_delivery><smmt_power_kw>86.5</smmt_power_kw><smmt_power_rpm>6000</smmt_power_rpm><smmt_torque_lb_ft>111.4</smmt_torque_lb_ft><smmt_torque_nm>150.9</smmt_torque_nm><smmt_torque_rpm>4500</smmt_torque_rpm><smmt_co2/><smmt_no_of_doors>5</smmt_no_of_doors><smmt_body_style>HATCHBACK</smmt_body_style><smmt_cab_type>NA</smmt_cab_type><smmt_drive_type>4X2</smmt_drive_type><smmt_body_shape>NA</smmt_body_shape><smmt_height>1497</smmt_height><smmt_length>4342</smmt_length><smmt_load_length/><smmt_no_of_axles>NA</smmt_no_of_axles><smmt_no_of_seats_mv>5</smmt_no_of_seats_mv><smmt_rigid_artic>RIGID</smmt_rigid_artic><smmt_wheelbase>NA</smmt_wheelbase><smmt_width>1840</smmt_width><smmt_gross_combined_weight/><smmt_gross_train_weight/><smmt_gross_vehicle_weight/><smmt_kerb_weight>0</smmt_kerb_weight><smmt_payload_volume/><smmt_payload_weight/><smmt_unladen_weight_mv/><smmt_urban_cold_mpg>32.5</smmt_urban_cold_mpg><smmt_extra_urban_mpg>55.4</smmt_extra_urban_mpg><smmt_combined_mpg>44.1</smmt_combined_mpg><smmt_urban_cold_lkm>8.7</smmt_urban_cold_lkm><smmt_extra_urban_lkm>5.1</smmt_extra_urban_lkm><smmt_combined_lkm>6.4</smmt_combined_lkm><smmt_max_speed_mph>118</smmt_max_speed_mph><smmt_max_speed_kph>190</smmt_max_speed_kph><smmt_acceleration_mph>11.4</smmt_acceleration_mph><smmt_acceleration_kph>11.4</smmt_acceleration_kph> example url : https://www.cdlvis.com/lookup/getxml?username=username&mode=test&key=mykey&vrm=registrationnumber thanks in advance for any help provided… Edited January 28, 2014 by Shaun53 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.