Hi all! I know I should introduce myself here, but I’m in a bit of a rush. I’m not experienced at PHP and am very stuck at how to approach this.
I’ve been putting together a small website for the Felton Food Festival (www.feltonfoodfestival.org.au) with a website builder called BlueVoda, then when I export it, I polish it off a bit by looking at the messy HTML code which is all out of sequence, but meh.
Anyway, on one page there is a section which says “The current highest bid is…” and then, at the moment I have a
[php]<?php include('*filenamehere*'); ?>[/php]
in which echo’s what is in the filenamehere file. The only value in the file is:
$0.00
Because no one has bidded yet. Currently, I have it so that the people holding the event have to manually go through cPanel’s Filemanager to update it, and edit the code and all.
However, I want to be able to have it so that they can just go to a password-protected directory, and there be a form there so they can just type in the amount of the current bid, say they type in $5.00 to the box, and hit submit.
Then the PHP overwrites the existing contents of the file and replaces it with what they put in the one-line text box.
I have found this website, but I have no idea how to change the code so that it draws the info from what is submitted through the web form? The field name would be called “bid” and the form would be submitted with the POST method.
Sorry if I don’t make any sense at all, but I’m still new to this again, and yeah. Thank you heaps!