User Profile

Collapse

Profile Sidebar

Collapse
virtualweb
virtualweb
Last Activity: Jun 10 '17, 10:52 PM
Joined: Aug 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • virtualweb
    started a topic Pass variables from Perl to Ajax and back
    in Perl

    Pass variables from Perl to Ajax and back

    Hi everybody, I'm creating a website with HTML / Javascript embeded in perl code. I use perl to get values from a MySQL database which I need to feed a chart created with the javascript code so the chart can be updated on the fly. Everything works perfectly well except I don't know how the perl variable values can be passed to the javascript within the same document.

    Here is abbreviated example code:

    Code:
    #!/usr/bin/perl
    ...
    See more | Go to post

  • Validating an Optional field with Bootstrap Jquey

    Hi:

    My form asks the user the following question:

    If you have a "Discount Code" enter it below.

    Most people will not have a code so the field cannot be required, but when it is filled, I want the jquery validation to guard me against malicious code.

    The form works great. The field is checking for "alpha numeric values" and "minimum characters" but I cannot submit it...
    See more | Go to post
    Last edited by virtualweb; Jun 9 '16, 03:55 PM. Reason: Adding the code to the post instead of in separate file

  • How to display special characters like (ñ, Ñ, É, û)

    Hi:

    My website is in spanish and many spacial characters are used, except my browser dysplays a funny question mark instead of the special character.

    Is there a bit of code that needs to be added to my document's <head></head> or anywhere else to make it display the special characters..??

    Thanx beforehand
    virtualweb
    See more | Go to post

  • virtualweb
    started a topic Create MySQL database on the fly
    in Perl

    Create MySQL database on the fly

    Hi:

    I'm a novice regarding MySQL management with perl.

    I have read several online tutorials and managed so far to create a Table, insert a row, make some edits to specific items already saved in specific rows, display the last row entered, etc, in other words I feel I've done considerable progress.

    Now I'm converting an online auction script to work from flat file database to MySQL. When a user enters...
    See more | Go to post

  • virtualweb
    started a topic How many Items in each Category
    in Perl

    How many Items in each Category

    Hello I'm doing a basic Item Catalog based on Flat File databases.

    My Category Database (Categories_Lis t.txt) has Categories in this manner:

    OILS
    CANNED FOODS
    LIQUORS
    WINES
    VEGETABLES

    My Product Database (Items_List.txt ) has Items and Categories in this manner:

    OILS|Corn Oil
    CANNED FOODS|Tuna
    CANNED FOODS|Sardines
    LIQUORS|Whiskey
    LIQUORS|Vodka...
    See more | Go to post

  • virtualweb
    started a topic Passing Variables to Drop Down Menu

    Passing Variables to Drop Down Menu

    Hello;

    I never coded in javascript but I taught myself perl through books and tutorials and found many similarities.

    This helped me modify a free downloadable javascript snippet of code from a website and do the nessessary changes to adapt it to my needs.

    http://javascript.inte rnet.com/forms/country-state-drop-down.html

    I need a drop down menu for a registration form where people select...
    See more | Go to post

  • virtualweb
    started a topic Extract text from a Website Stats Widget
    in Perl

    Extract text from a Website Stats Widget

    Hello:

    I found a very nice Website Stats widget which I copy pasted into my site.

    What I like about this widget is that not only tells you which URL, country, date, time, IP, refrerrer, etc, (that most website counters display today), but a very cool additional piece of information I haven't found in any other webiste counter. It displays the city where the visitor comes from.

    You can see the widget here....
    See more | Go to post

  • virtualweb
    started a topic Multiple File Upload
    in Perl

    Multiple File Upload

    Hello:

    Im building an Upload Form.

    Im interested in being able to upload several files at once.

    The only way I know how to do this is by using a form with many input type=file as follows:

    Code:
    <INPUT name=WHATEVER type=file>
    But I would like to be able to select several files from my hard drive when I click on the "Browse" button, and have them load into a textarea....
    See more | Go to post

  • virtualweb
    replied to Preserving Array Values Positions
    in Perl
    Hello numberwhun :

    Thanx for your quick response.

    I thought sort was used to arrange a list in a particular order. Alphabetically or from smaller to higher.

    For ease of explanation I used the numerical emails 1 through 10, But emails surelly be very different in real life, and if I have emails in the follwing list:

    zebra@server.co m
    young@server.co m
    xylophone@serve r.com...
    See more | Go to post
    Last edited by virtualweb; Nov 12 '09, 03:48 PM. Reason: typos

    Leave a comment:


  • virtualweb
    started a topic Preserving Array Values Positions
    in Perl

    Preserving Array Values Positions

    Hello:

    I have two lists of emails saved in flat files one email per line.

    My script removes the emails in list 2 if they are present in list 1. Then reprints the email list, one email per line, back into list 2 but without the weeded out emails.

    Except that when reprinting back to list 2 the order is random and I want to preserve the same order in which the emails were at first.

    EXAMPLE:...
    See more | Go to post

  • It Worked...!!!

    Hi KevinADC:

    I appreciate your help.. I had tryed your solution prior to posting for help here, and it didnt work. This made me think that uploading a file was different than passing text as a variable.

    Second time around worked just fine..

    Thanx a million
    VirtualWeb
    See more | Go to post

    Leave a comment:


  • hidden variables with EncType="multipart/form-data"

    Not able to pass variables data:

    Hello .. Im building a form that uploads files with encType="multip art/form-data" but on the same form I need to pass other variables with hidden fields.

    The files are uploading fine but Im not getting the values of the hidden fields,

    How can I get hidden field values along with uploaded files in the same form..??

    This is my form code:

    ...
    See more | Go to post

  • virtualweb
    started a topic Problem with push() Function
    in Perl

    Problem with push() Function

    Hello:

    Im trying to do a web directory similar to Yellow Pages based in a flat file database.

    My script saves info in a folder named COUNTRIES in the following manner.
    $Country-$State.txt

    OK, now I need to use this data to present it on the browser. I want to make a one column table so each row in the column will be a different Country. Inserted between countries, in the same column I want to
    ...
    See more | Go to post

  • virtualweb
    started a topic foraech loop inside a for loop
    in Perl

    foraech loop inside a for loop

    Hello:

    I got stuck again....

    In my Hotel Reservation script all reservations are saved in a flat file which name is the room number. (example: Data/room1-101.dat).

    Reservations are saved in the following manner.

    Code:
    3
    John Smith|||||||||Day:,Eve:|25|4|2009|25|4|2009|11|30
    James Taylor|||||||||Day:,Eve:|26|4|2009|26|4|2009|11|30
    Peter Willam|||||||||Day:,Eve:|10|4|2009|20|4|2009|11|30
    ...
    See more | Go to post
    Last edited by pbmods; Apr 13 '09, 10:43 PM. Reason: Removed annoying bold tags.

  • virtualweb
    replied to Undefined Arrays inside for loop
    in Perl
    Thank you.. your suggestion worked

    Thank you.. I had never seen a hash of arrays... it worked...
    See more | Go to post
    Last edited by eWish; Apr 13 '09, 11:53 PM. Reason: Removed BOLD tags

    Leave a comment:


  • virtualweb
    started a topic Undefined Arrays inside for loop
    in Perl

    Undefined Arrays inside for loop

    Hello:

    Im working on a Hotel Reservtion script and ran into a little problem:
    I have 3 types of rooms, 1 is Single, 2 is Double, 3 is Suite
    for this reason, $totaltypes = '3'; (in the snippet below).

    I have a form with checkboxes in order to reserve rooms, all rooms that are checked are saved in the array @All_Rooms as detailed below:

    Code:
     = ("1-101", "1-102","2-201",
    ...
    See more | Go to post
    Last edited by eWish; Apr 13 '09, 11:53 PM. Reason: Removed BOLD tags

  • virtualweb
    started a topic Check a balance via SMS

    Check a balance via SMS

    Hi:

    I coded a WebMall in Perl that requires the user has a positive balance saved in the WebMall in order to shop. (it is a pre-paid e-wallet style operation).

    Each users account is in a folder under the email address and the balance each registered user has in its account is saved in a flat file the following way:

    user_01@someser ver.com/Balance.txt

    I dont have a clue of what is needed to...
    See more | Go to post

  • virtualweb
    started a topic How to get complete URL Referer
    in Perl

    How to get complete URL Referer

    Hello:

    Im working on a script that needs the complete URL referer to proceed accordingly to variables included after the question mark on the previous URL.EXAMPLE

    Code:
    cgi-bin/myscript.pl?first_variable=YES
    But the following Environment Variable

    Code:
    $ENV{'HTTP_REFERER'}
    Only prints the URL up to the question mark

    Any Ideas..??

    VirtualWeb
    See more | Go to post
    Last edited by eWish; Dec 13 '08, 09:38 PM. Reason: Removed "BOLD" tags. Please do not make your entire post bold.

  • virtualweb
    replied to Perl SMS Script Install
    in Perl
    eWish
    Thanx for you prompt reply

    I am working on a Unix server.. I appreciate your advice installing CPAN modules, I will ask my server tech people to do it... But still I will need help constructing the proper code to send an SMS... Sounds easy enough but I m interested in having somene do it for me because of time constraints. (this is why I posted this message as a job and not as a help question).

    If...
    See more | Go to post

    Leave a comment:


  • Hello KevinADC:

    I was hoping there was a way using localtime that would stamp the time the user reached that subroutine.. and then adding one minute to it would allow it to continue..all the while showing a gif image to tell the user a process is underway.

    This is above my expertise but i hope the logic is correct.

    Thanx for your imput
    VirtualWeb
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...