Previous Thread
Next Thread
Print Thread
Rate Thread
#101678 11/09/2000 9:04 PM
Joined: Aug 2000
Posts: 469
Member
Member
Offline
Joined: Aug 2000
Posts: 469
OK, I'm trying to make a script. No, don't start laughing...yet. I want to be able to set the mp3/picture/link of the day without editing and reuploading my .shtml page every day.

So I tried. And the following is what I have, and it's dreadfully wrong. No ISEs, but it doesn't work because I probably did it all wrong, and I get the feeling that Mark B. (if he sees this) is not going to like it.

Anyway, proceed to mock:
Code
code:

template.cgi just holds two subroutines, tophtml and bothtml, both of which just have (gasp!) html in them.

Anyway, I can't get subroutine "add" to run after submitting the form, and assuming it did run, it would most likely not work. Thats my guess.

So instead of mocking me, perhaps someone could explain to me why this doesn't work, and what I can do to make this work.

------------------
-david

www.antipopculture.org

Sponsored Links
#101679 11/10/2000 5:16 AM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
If your intention is to append to DAYFILE, open(DAYFILE, "things.dat") should be open(DAYFILE, ">>things.dat").

This message has been edited by Dave_L on November 10, 2000 at 05:21 AM

#101680 11/10/2000 8:04 AM
Joined: Aug 2000
Posts: 469
Member
Member
Offline
Joined: Aug 2000
Posts: 469
awright, I'll do that. too bad I can't do it here at school.

------------------
-david

www.antipopculture.org

#101681 11/10/2000 11:31 AM
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
David, not to bad for a beginner script. I do have recommnedations which i'll try to go over later, I don't have time now.

Question: Are you importing the StartHTML, EndHTML and StandardHTML routines in? If not, you need to place those subs in your script.

I'll look at this later to see what is up with it. [Linked Image]

--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 3273
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)