I have a rather complex script that reads from forms input and puts content into a |-delimited database, and then shows and build pages in various ways (yeah, just like DBMan and Links).
Now I want to split one form into two, say $title and $subtitle, but saving the result into the same string within two |'s, so that I don't have to rebuild the database, and without having to do too many changes in the script.
So, I want to change:
...
print "Title: <INPUT Name=\"title\" Size=40>\n";
...
to something like:
...
print "Title: <INPUT Name=\"toptitle\" Size=40>\n";
print "Title: <INPUT Name=\"subtitle\" Size=40>\n";
$toptitle+$subtitle=$title
... or however this is done in Perl.
Can anyone please help me with this?
Thanks
John
Now I want to split one form into two, say $title and $subtitle, but saving the result into the same string within two |'s, so that I don't have to rebuild the database, and without having to do too many changes in the script.
So, I want to change:
...
print "Title: <INPUT Name=\"title\" Size=40>\n";
...
to something like:
...
print "Title: <INPUT Name=\"toptitle\" Size=40>\n";
print "Title: <INPUT Name=\"subtitle\" Size=40>\n";
$toptitle+$subtitle=$title
... or however this is done in Perl.
Can anyone please help me with this?
Thanks
John