Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 2nd, 2001, 11:50 PM
panamajacksoy panamajacksoy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 0 panamajacksoy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry

Hello there. I have searched all over the net for this script with no luck perhaps,someone here can tell me where I can find it or give me a rough idea of how to get it started.

ok here it goes.

I need I script that will do the following.

Fill out a form. You can see a sample form at URL
once the form is filled, open a template1.txt, replace the info in the template provided by the form. (i.e. title and graphic name) save the whole thing as "GRAPHIC NAME".shtml to a perticular directory.

then open template2.txt, replace the info in the template with the information provided by the form. (i.e. title and graphic name, category, plus a few hidden inputs) search for a "AVAILABLE NUMBER HERE" and automatically added to the listing. add the template to the existing file. and save it.
it will use this format
---------------------------------------
AVAILABLE NUMBER HERE|TITLE|http://panamas.net/html/"GRAPHIC NAME".shtml|1-Feb-2001|CATEGORY|SUB-CATEGORY1~SUB-CATEGORY1~ETC|||Panama|working@my.net|8|No|No|0|0|No|http://www.panamas.net/cgi-script/cardnew/imageszz/"GRAPHIC NAME"zz.jpg
---------------------------------------

there are a couple more files that I want to open and add the same info in diffrent formats, but If I get the first two done I can modify the script for the rest of it.

Basically what I need is a script the will add the same info to diffrent databases, using just one form.

Please let me know if anyone can help me with this. Or where I can find a similar script that I can modify to fit my needs.

Thanks.

Reply With Quote
  #2  
Old April 3rd, 2001, 08:31 AM
unobserved unobserved is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 11 unobserved User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to unobserved
buddy ..

i think you're going to have to program that one yourself, or get a friend to do it. the chances that you're going to find a script to do something that specific are slim-to-none.

good luck though.

Reply With Quote
  #3  
Old April 3rd, 2001, 03:28 PM
dsb dsb is offline
PerlGuy
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Posts: 714 dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 15 h 44 m 20 sec
Reputation Power: 36
Send a message via AIM to dsb
One question...I was confused as to whether a user would be filling in the form or the script would be doing it...

If it's the user input way, then when you bind the parameters from the form using CGI.pm they are there for whatever purposes you want. Other than that, it sounds like basic text processing...
__________________
- dsb -
Perl Guy

Reply With Quote
  #4  
Old April 3rd, 2001, 06:02 PM
panamajacksoy panamajacksoy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 0 panamajacksoy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
user submit

First of all thanks for the replies.

The form will be user submitted. I'm trying to tie all of my databases into one. And since they all have the same info but use diffrent formats, i figure that the way to go would be to start a script for it.

You see, I can modify scripts to match my need. But I have no clue of how to get one going, that's why I was searching for one similar script that I could find of the net to work with.

So to you it might be basic text processing...but for me it's just a big hurdle at this moment.

Anyways. If you or anyone can start one that I can use or point me to one thats already made it will be of great help to me

Reply With Quote
  #5  
Old April 4th, 2001, 09:56 AM
jdk's Avatar
jdk jdk is offline
phpkid ~~~~~~ :o)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2000
Location: NJ, USA
Posts: 2,535 jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 11 m 11 sec
Reputation Power: 10
Send a message via Yahoo to jdk
Smile Hello.

hi friend,
i think i have done something similar to this.
i have a form...user feels in, then using those information i generate a page from template and put in some directory.
but actually my script does whole lot of other thing too,
so u know...if u can give me more details..i will just change my script a bit...and mail it to u....is it ok ?

if so let me know at ur earliest,
best of luck
jd
__________________
_____________________________
d.k.jariwala (JD)
~ simple thought, simple act ~
I blog @ http://jdk.phpkid.org

Reply With Quote
  #6  
Old April 5th, 2001, 10:08 AM
jdk's Avatar
jdk jdk is offline
phpkid ~~~~~~ :o)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2000
Location: NJ, USA
Posts: 2,535 jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 11 m 11 sec
Reputation Power: 10
Send a message via Yahoo to jdk
Question What is this ??

Message from yahoo.com.
Unable to deliver message to the following address(es).

<netmaster@panamas.net>:
Sorry, I couldn't find a mail exchanger or IP address. (#5.4.4)

--- Original message follows.

Return-Path: <boyzone_2001@yahoo.com>

The original message is over 5k. Message truncated to 1K.

Received: from unknown (HELO texsurat) (203.88.147.251)
by smtp.mail.vip.sc5.yahoo.com with SMTP; 5 Apr 2001 14:51:36 -0000
X-Apparently-From: <boyzone?2001@yahoo.com>
Message-ID: <00bf01c0bde1$884b4760$ad7010ac@icenet.net>
From: "D.K.Jariwala on Yahoo" <boyzone_2001@yahoo.com>
To: "panamas" <netmaster@panamas.net>
References: <3ACB5961.E1D08A6C@panamas.net>
Subject: Re: Too Many databases
Date: Thu, 5 Apr 2001 20:33:05 +0530
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_00B7_01C0BE0F.9DF463C0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2462.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000

This is a multi-part message in MIME format.

------=_NextPart_000_00B7_01C0BE0F.9DF463C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hello friend,
i didnt get what u want me to do .
i mean do u want me to generate the form too.
if yes then atleast let me know about database.
and i think instructions werent that good.
plz try to give a better explanation. u r writing database here and =
i f
*** MESSAGE TRUNCATED ***

Reply With Quote
  #7  
Old April 5th, 2001, 10:27 AM
panamajacksoy panamajacksoy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 0 panamajacksoy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
email server down

sorry my mail server goes up and down. Mostly I use my email at aol. Sorry about that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Too many databases to do....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway