
Wenn Perl Skripte oder wenn HTML Formulare verschickt werden, stellt sich die Frage, wie die Parameter vom Skript geholt werden können. Für PHP Skripte ist die Lösung sehr einfach, da die Parameter als Variablen automatisch zur Verfügung stehen. Für Perl Skripte – hingegen – muss man eine Funktion aufrufen, die die übertragene Parameter übernimmt.
Hier finden Sie die Standard Funktion, die die Parameter übernimmt:
sub read_form { if ($ENV{‘REQUEST_METHOD’} eq ‘POST’) { read(STDIN, $buffer, $ENV{‘CONTENT_LENGTH’}); } else { $buffer = $ENV{‘QUERY_STRING’}; } @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $name =~ tr/+/ /; $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack(“C”, hex($1))/eg; $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack(“C”, hex($1))/eg; $form{$name} = $value; } } |
Damit die Parameter übernommen werden können, muss man einfach die Funktion aufrufen, und dann die Parameter jeweils von den “form” Variablen kopieren.
!/usr/bin/perl # print “Content-type: text/html\n\n”; &read_form(); $email = $form{’email’}; print “Email: $email”; |
HTML Formular für das Versenden der Variable email. Der obige Skript muss “script.cgi” heissen, und in richtigem Order des Server gespeichert werden.
<form action=”script.cgi” method=”post”> Email: <input type=”text” name=”email”> </form> |
pregabalin 150mg without prescription – lyrica 150mg without prescription buy lyrica online
cost clomid – buy cetirizine 5mg for sale buy zyrtec 5mg without prescription
buy misoprostol for sale – buy synthroid for sale purchase levothyroxine without prescription
viagra 50mg generic – buy gabapentin 800mg generic neurontin 100mg pills
female cialis cvs – cenforce 100mg price purchase cenforce generic
diltiazem 180mg without prescription – buy diltiazem 180mg pills acyclovir canada
atarax 25mg for sale – crestor over the counter crestor 10mg pills
ezetimibe tablet – order generic citalopram 20mg purchase citalopram pill
buy viagra pill – flexeril generic order cyclobenzaprine online
order sildenafil 50mg online cheap – buy tadalafil without prescription order cialis pills
toradol without prescription – toradol pills baclofen 10mg without prescription
colchicine 0.5mg tablet – strattera 10mg usa order strattera 10mg online cheap
buy sildenafil 150mg sale – methotrexate price oral clopidogrel
cheap viagra pills – viagra 100mg cheap order sildenafil pill
purchase esomeprazole sale – esomeprazole for sale online order phenergan for sale
tadalafil 10mg without prescription – Cialis on line purchase tadalafil 40mg over the counter
order provigil 200mg sale – cheap online pharmacy ed pills online
isotretinoin 20mg uk – amoxicillin 1000mg pills order azithromycin online
buy lasix without prescription – buy viagra 50mg generic buy viagra 100mg pill
cheap tadalafil pill – buy tadalafil 5mg online sildenafil 50mg price
tadalafil tablets – order tadalafil 20mg pills warfarin canada
topiramate tablet – order levofloxacin 250mg sale imitrex 25mg drug
order dutasteride online – buy cialis 10mg online cialis 20mg cost
sildenafil medication – viagra generic tadalafil cost
cheap erectile dysfunction pills – prednisone for sale online prednisone 20mg for sale
accutane 20mg cheap – amoxicillin 1000mg oral order amoxicillin 250mg online
cheap furosemide 40mg – generic lasix 40mg cost zithromax 250mg
oral doxycycline 100mg – buy hydroxychloroquine 200mg generic cheap chloroquine
order tadalafil 5mg online cheap – buy sildenafil 150mg sildenafil 50mg uk
modafinil 100mg tablet – order modafinil 100mg generic viagra sale
can i buy ed pills over the counter – prednisone online order deltasone price
brand accutane 20mg – oral amoxicillin 500mg buy celebrex 200mg online cheap
flomax 0.2mg uk – order ondansetron buy aldactone 100mg online cheap
simvastatin 20mg usa – purchase zocor without prescription helpwithassignment
casino online slots – gambling game letter editing
hollywood casino online real money – best casinos ampicillin 500mg cheap
purchase cipro without prescription – cialis 20mg oral cialis next day delivery usa
sildenafil drug – viagra cialis vardenafil cheapest generic vardenafil online
natural drugs for ed
generic prednisone cost generic prednisone prednisone 2.5 mg
ed medication compare ed drugs ed meds online
hydroxy chloriquine https://keys-chloroquinehydro.com/
treat ed overcoming ed male erectile dysfunction
cheap prednisone online cheap prednisone prednisone 250 mg
generic cialis uk online cialis usa prescription generic cialis from india safe
best erection pills ed and diabetes best erection pills
order prednisolone – tadalafil for sale online tadalafil 20mg sale
buy prescription drugs from canada levitra without a doctor prescription buy prescription drugs from canada
ivermectin for swine order stromectol over the counter stromectol ivermectin
the canadian drugstore buy prescription drugs from india online canadian drugstore
order augmentin 1000mg generic – purchase augmentin online cheap order tadalafil 20mg without prescription
п»їerectile dysfunction medication ed pills that really work ed pills for sale
ivermectin pour on for cattle label ivermectin ebay ivermectin 500ml
bactrim 480mg brand – viagra 50mg tablet oral sildenafil
ed medication best drug for ed male ed drugs
buy propecia cheap finasteride hair loss buy finasteride
treatment of ed best erectile dysfunction pills п»їerectile dysfunction medication
ivermectin plus for goats ivermectin 2% stromectol 3mg cost
cephalexin pills – buy erythromycin 250mg sale buy generic erythromycin
buy ed pills online ed pills that really work ed medications list
reputable online pharmacies in india india pharmacies shipping to usa best online international pharmacies india
order fildena 100mg online – sildenafil generic stromectol 2mg
buy prescriptions from india pharmacy trusted india online pharmacies india pharmacy without dr prescriptions
best ed pills non prescription herbal ed treatment best male enhancement pills
sildenafil 100 mg sildenafil citrate 100mg for sale sildenafil
budesonide over the counter – antabuse 250mg price purchase disulfiram online cheap
cialis pills cialis 20mg online purchase of tadalafil in india
viagra viagra pills sildenafil citrate 100mg for sale
ceftin 500mg without prescription – buy cialis 5mg generic cialis 5mg sale
stromectol pills for humans stromectol pills for humans stromectol 3 mg tablets price
stromectol pills for humans stromectol for humans for sale prescribing stromectol
clomid tablets for sale clomid for sale canada clomid tablets
buy ampicillin generic – buy ampicillin 500mg for sale cheap tadalafil online
tadalafil best price 20 mg cialis pills best price for daily cialis
stromectol for sale buy liquid ivermectin stromectol tablets for humans