This part all works just fine.
#!/usr/bin/perl -Tw
require "/home/jaredmg/public_html/cgi-bin/formprocessor.cgi";
&ReadParse (*input);
$name= $input{'name'};
$codeemail= $input{'email'};
use DBI;
$dbh = DBI->connect("DBI:mysql:jaredmg_form:localhost","jaredmg_jaredmg","springer")...
Sorry, I thought it was more straightforward than that. My bad.
I'm using the DBI module. I don't get any error messages, interesting enough. It just won't display on the page. It displays the first names just fine but it won't print the email list. Weird huh?
Have I supplied enough...
On a small note for html attributes and formatting, I dug up an extremely useful site: bignosebird.com. They cover many of the elements and attributes.
Also be careful when using html in perl. I don't know how many times I type a line like this:
print "<table width=" and so on
and forget...
(Assuming STFW means search the F'n web)
Ouch. Geez, it's not like I didn't try it. I was just wondering if somebody hadn't seen one that was a little more to the point, I've looked up several tutorials and none seemed of any use. Either too complicated or so much obviousness it took getting...
I would like to learn how to use Mysql seeing as how it would be so extremely useful, especially since my databases have been printing information out to html tables. Yeah, not secure, and very unprofessional. Does anybody have some advice on a good online tutorial to look up? I know a little...
...This will give you the finger-as in refuse to work.
<a href="whatever.com" onlick="alert("What\'s up?");">click here for an annoying popup</a>
*semicolons are used in nearly all programming languages (javascript, PHP, perl, etc.) to end a statement. For the most part, you don't have to...
Okay, thanks for the idea! I used your idea with another code and came up with something that worked out okay. I can't wait until I get broke into the feel of javascript, I'm still pretty new to it.
Here's my code:
<script language="javascript">
function passit(){...
Okay, thanks cLFlaVA, I'll give it a shot. I understood the code part, but not your "imgainary questions" part! LOL Thanks for the info, it really helps.
Nice to know another Cradle of Filth fan. I have a wide appreciation for any music with talent. I love the melodies that Cradle...
I think it might. I'm seeing it create future complications though... I'm already seeing the problem that if I need to change something else in the script that is on a different line, it may not work due to the fact that too much information would create two lines, therefor throwing off the...
...me to call information from the html #document. I call the information with $input{'whatever #the name is within the html tag'};
&ReadParse(*input);
$fname= $input{'fname'};
use Tie::File;
tie @array, 'Tie::File', 'replies.cgi' or die "oops";
#This part opens replies.cgi and turns the...
...files and assigns them to a variable.
So far, this is what the script kinda looks like:
#!/usr/bin/perl
require "formprocessor.cgi";
&ReadParse(*input);
$fname= $input{'fname'};
use Tie::File;
tie @array, 'Tie::File', 'replies.cgi' or die "oops";
$array[2] = "print \"$fname\"\;";"...
Also, with the tie::file, I get a really weird error on the file that I just appended. The server refuses to let me view it. The Chmod's are all okay, in fact I put it on 777 (overkill doesn't hurt at this point). The URL is correct, but the server still won't let me view it. When I look up...
Well, I got it to work, but it's still not quite what I wanted. I got it write in the middle of the document, but I need it to append to the information that is already there. Think of a guestbook script. This would work, except it writes over the previous entry. What would be a good method...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.