R
Ron Smith
What I want to do is create a HTML form that allows the user to enter data
into about 10 fields, and then based on the entered data, writes out data
strings to a text file. I am attempting to create a form for entering
simple rectangle CAD data via a HTML form, which will be written to a text
file, and then imported into a CAD program.
The form would contain prompt boxes for things like length, width, radius
size, step/repeat, etc. When the user hits the "SUBMIT" button, the data
strings would be written out to the filename the user specified. Below is
an example of data strings to be ouputted. Variables are &L, &W, &R,
&STEPX, &STEPY, &XN, &YN.
FRO 0 0 BY &L 0 ATT 1 POI 2
BY 0 &W ATT 1 POI 2
BY -&L,0 ATT 1 POI 2
TO 0 0 POI 2
JOI EXT 1 2 BLE &R
JOI EXT 2 3 BLE &R
JOI EXT 3 4 BLE &R
JOI EXT 4 1 BLE &R
TRY;SEC LAYOUT;REC;LAYOUT;YRT
SUB A POS 0 0 ATT 0;FILE A INT
MER A TO A
TRY;COP 1 BY &STEPX 0 TIM &XN-1;REC;YRT
TRY;COP .. BY 0 &STEPY TIM &YN-1;REC;YRT
into about 10 fields, and then based on the entered data, writes out data
strings to a text file. I am attempting to create a form for entering
simple rectangle CAD data via a HTML form, which will be written to a text
file, and then imported into a CAD program.
The form would contain prompt boxes for things like length, width, radius
size, step/repeat, etc. When the user hits the "SUBMIT" button, the data
strings would be written out to the filename the user specified. Below is
an example of data strings to be ouputted. Variables are &L, &W, &R,
&STEPX, &STEPY, &XN, &YN.
FRO 0 0 BY &L 0 ATT 1 POI 2
BY 0 &W ATT 1 POI 2
BY -&L,0 ATT 1 POI 2
TO 0 0 POI 2
JOI EXT 1 2 BLE &R
JOI EXT 2 3 BLE &R
JOI EXT 3 4 BLE &R
JOI EXT 4 1 BLE &R
TRY;SEC LAYOUT;REC;LAYOUT;YRT
SUB A POS 0 0 ATT 0;FILE A INT
MER A TO A
TRY;COP 1 BY &STEPX 0 TIM &XN-1;REC;YRT
TRY;COP .. BY 0 &STEPY TIM &YN-1;REC;YRT