I have a problem (lol... that's nothing new)
I have a script that:
- takes info submitted by user
- files it in a .db file
- prints it out for me on an access page where I can review the site and decide whether to delete it or post it on a page
(It's an award/site review script)
But what I want to do is be able to make changes in the url/description area from my access page. The info the user submitted shows up in a textbox, but it doesn't save my changes when I post it to the page.
The .cgi file is located: <!-- m --><a class="postlink" href="http://www.equusconnect.com/award.txt">http://www.equusconnect.com/award.txt</a><!-- m -->
Could someone please help me save my changes to the .db file? (Hope that made some sence to you guys!)
Thanks,
- CaroleDid you write the script or was it an existing script?
There appears to be no provisions for accepting actual input from the "Review The Following Sites" form. When that form is submitted it looks like the script keys off of the <input type=hidden name=award> tag. If that input name is found the script opens the application.db file, pulls out the appropriate line ($keepline) and deletes it from the application.db file and transfers it to the awarded.db file. But no where in the process does it accept textfield data from the "Review the Following Sites" form.
The application.db file would first need to be overwritten with any new data you send it (which is not programmed into the script that I can see), then do the rest of the processing as is currently being done.
I could see adding a checkbox field to the form:
<input type=checkbox name=revise>
if the box is checked:
if ($input{'revise'}) {
$change_file = 1;
&update_file;
}
if ($change_file != 1){
go do what the script does now
}
something along those lines anyway......
you would need to write a new subroutine for &update_file.
HTH
Regards,
KevinNo, I didn't write it, it's just a little script from <!-- m --><a class="postlink" href="http://www.amusive.com/scripts/">http://www.amusive.com/scripts/</a><!-- m --> that I found that I hoped would do the trick... I'll play around with what you gave me, but I doubt I'll be able to get it to work with my limited knowledge of actually writing code
Thanks anywayHi Carole,
If you can't get it to work just post another reply in this thread and if no one else gives you the help you need and if I have time tonight I'll see what I can do. It shouldn't be too hard, but I can't make you any promises.
Regards,
kevinHi Carole,
give this a try (Download attachment).
There should now be a checkbox in the review form. If you make revisions to the entry, check the box and click the "Award this Person" button. If there are no changes to the entry, leave the checkbox blank and click the button.
Regards,
Kevinuse this attachment insteadThank you so much Kevin!!
It seems works perfectly... I really appreciate the time you took
- CaroleHi Carole,
Works perfectly? Guess I got lucky this time
You're very welcome.
Regards,
Kevin
I have a script that:
- takes info submitted by user
- files it in a .db file
- prints it out for me on an access page where I can review the site and decide whether to delete it or post it on a page
(It's an award/site review script)
But what I want to do is be able to make changes in the url/description area from my access page. The info the user submitted shows up in a textbox, but it doesn't save my changes when I post it to the page.
The .cgi file is located: <!-- m --><a class="postlink" href="http://www.equusconnect.com/award.txt">http://www.equusconnect.com/award.txt</a><!-- m -->
Could someone please help me save my changes to the .db file? (Hope that made some sence to you guys!)
Thanks,
- CaroleDid you write the script or was it an existing script?
There appears to be no provisions for accepting actual input from the "Review The Following Sites" form. When that form is submitted it looks like the script keys off of the <input type=hidden name=award> tag. If that input name is found the script opens the application.db file, pulls out the appropriate line ($keepline) and deletes it from the application.db file and transfers it to the awarded.db file. But no where in the process does it accept textfield data from the "Review the Following Sites" form.
The application.db file would first need to be overwritten with any new data you send it (which is not programmed into the script that I can see), then do the rest of the processing as is currently being done.
I could see adding a checkbox field to the form:
<input type=checkbox name=revise>
if the box is checked:
if ($input{'revise'}) {
$change_file = 1;
&update_file;
}
if ($change_file != 1){
go do what the script does now
}
something along those lines anyway......
you would need to write a new subroutine for &update_file.
HTH
Regards,
KevinNo, I didn't write it, it's just a little script from <!-- m --><a class="postlink" href="http://www.amusive.com/scripts/">http://www.amusive.com/scripts/</a><!-- m --> that I found that I hoped would do the trick... I'll play around with what you gave me, but I doubt I'll be able to get it to work with my limited knowledge of actually writing code
Thanks anywayHi Carole,
If you can't get it to work just post another reply in this thread and if no one else gives you the help you need and if I have time tonight I'll see what I can do. It shouldn't be too hard, but I can't make you any promises.
Regards,
kevinHi Carole,
give this a try (Download attachment).
There should now be a checkbox in the review form. If you make revisions to the entry, check the box and click the "Award this Person" button. If there are no changes to the entry, leave the checkbox blank and click the button.
Regards,
Kevinuse this attachment insteadThank you so much Kevin!!
It seems works perfectly... I really appreciate the time you took
- CaroleHi Carole,
Works perfectly? Guess I got lucky this time
You're very welcome.
Regards,
Kevin