Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Form
robocz033
post May 13 2007, 04:23 AM
Post #1


Premium Member
********

Group: Members
Posts: 165
Joined: 28-April 07
From: Where ever i feel appropriate
Member No.: 42,321



Alright, i need a script that will change a number every time a button is clicked. the line it must change is:
http://www.notapplicable.rifehost.com/smf/...start=0;board=1
to:
http://www.notapplicable.rifehost.com/smf/...start=1;board=1
and keep moving the "start=(#)" up. the forum is dedicated to this, so i dont have to worry about the post number or anything. it will be a strait up deal.
Another feature, if possible, is to link a bunch of generators together. they all go off of the same post counter and then with that, they determine the line to put in.
For example:
The website request form has this post number: http://www.notapplicable.rifehost.com/smf/...tart=10;board=1
then the website modification for has this post number: http://www.notapplicable.rifehost.com/smf/...tart=11;board=1
so the script would link that line of code with all the other files. if someone can do this, i will send them the files. then it would be also appreciated if it could be explained to me.
Go to the top of the page
 
+Quote Post
jlhaslip
post May 13 2007, 04:35 AM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,969
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



I don't have time to do this coding, but one method would be to create a text file with a single line of data, being the start number last used. Each time the button is clicked, read the file for the last value used, add one and write that to the file as an overwrite of the data, then store the value in the code to be used for the query string.

Sorry that i don't have the time to do it for you. Maybe read up on fread, fwrite functions and using the $_GET method to retrieve the query string over at the php.com site.
Go to the top of the page
 
+Quote Post
Saint_Michael
post May 13 2007, 05:38 AM
Post #3


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,425
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



Like I mentioned earlier about this, the problem I see with doing a hack like that is it will mess up the post that use a unique number and then the increases by one every time a new post is made. When someone posts on the forum that has the same number as the link the forum generates, it could cause a possible error in the database. Unless you somehow create a separate database if the info programmed in and then generated through a php then it might work. Hopefully that gives an idea on where to start programming that.
Go to the top of the page
 
+Quote Post
robocz033
post May 13 2007, 03:29 PM
Post #4


Premium Member
********

Group: Members
Posts: 165
Joined: 28-April 07
From: Where ever i feel appropriate
Member No.: 42,321



im going to make a seperate forum for it so that does not happen. even if it does, all that happens is it says the post was already submitted.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php Ftp Upload Form(1)
  2. What Is A Computer Form Factor(1)
  3. Perl For Automated Web Form Search(1)
  4. Have Diferences Of Performance Form Ps2 Full Console To Mini-ps2?(8)
  5. Free Windowsxp Sp2 Cd From Microsoft(12)
  6. Vb 2008 Linking To Another Form..(0)
  7. Form To Php Mail. Attachment(14)
  8. *** Click Here To Get Your Free Hosting ***(1)
  9. Html Form!(4)
  10. Application Form [approved](2)
  11. Gahhh This Isn't Going Well Please Help!(12)
  12. How To Make Form Nested In Internet Explorer ?(2)
  13. Loop Through Form(8)
  14. Registration Form?!(6)
  15. Help With Form Actions.(1)
  1. How To Make A Search Form And Php Code?(10)
  2. Form Not Returning Correct Email Address(5)
  3. I Liked This Form Builder(4)
  4. Brand New Motherboard Form Factor Coming Out?(2)
  5. Updating Php File Through A Web Form(5)
  6. Problem With Java Script Popup Form(1)
  7. Controlling Differents Keypresses In A Single Form(0)
  8. Add A Javascript Feedback Form On Your Web Page(6)
  9. Best Way To Protect Html Form Fields(3)
  10. Html Application Form(6)
  11. Free Hosting Request Form [denied](1)
  12. Free Hosting Request Form [denied](1)
  13. My Idea For A Form Of Government(24)
  14. Whats The Best Form Of Karate For Fitness/defence?(2)
  15. Email Form Code(8)


 



- Lo-Fi Version Time is now: 30th August 2008 - 01:47 AM