Jul 25, 2008

Form

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Form

robocz033
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.

 

 

 


Reply

jlhaslip
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.

Reply

Saint_Michael
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.

Reply

robocz033
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics
Looking for form

Searching Video's for form
advertisement



Form



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE