Jump to content
xisto Community
Sign in to follow this  
robocz033

Form

Recommended Posts

Alright, i need a script that will change a number every time a button is clicked. the line it must change is:
http://forums.xisto.com/no_longer_exists/
to:
http://forums.xisto.com/no_longer_exists/
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://forums.xisto.com/no_longer_exists/
then the website modification for has this post number: http://forums.xisto.com/no_longer_exists/
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.