Nested (echoed) php running wrong script
Posted on
16th Feb 2014 07:03 pm by
admin
Got a problem with a php website I'm creating.
In a nutshell, the first page is entirely html and calls a php script to process an uploaded file and some form fields using POST. After validating the uploaded file the script echos a new page with a new form containing hidden inputs to carry forward the extra information provided in the original form (this was easier than getting my head around cookies). It works, because when I view the generated source all of the hidden input values have been populated with the correct information.
Did you know?Explore Trending and Topic pages for more stories like this.
The problem I am having is with the next part of the process - the echoed page includes a new button that is supposed to call a separate php script, using the new form values. But when the button is clicked, it executes the existing php script again (and fails on the validation) instead of running the correct script as referenced in the onClick attribute of the button.
Any idea what I'm doing wrong? or why it is behaving like this?
No comments posted yet
Your Answer:
Login to answer
348
15
Other forums
phpMailer not working ..........
HI,
I was playing with the phpMailer script and tried to send a smiple mail using their test scri
Placing and array within an array then sorting it!
I have a page that runs two large mysql queries and saves the results into arrays, in php I then per
Looping Problem
I've got a client that has a database with about 200 events at any given time. I'm trying to loop t
Reditecting pages based on logic
Newbie here, apologies in advance!
I am trying to use the header function to forward one of a
MySQL Primary key gap
Alright, so I have a table with 26 entries in it (id, filename, caption) for my image randomiser (ht
tag inside php... hi
Code: <?php echo "<td width="$columnWidth%" align=&need Array help This is what I have to do. $teamname[1] = "Red Sox" $teamname[2] = "Gian Preg_match question I want to use preg_match to make sure a string is always 6 characters long and only contains 0-9 and How to create a static html menu from a database Hi,
I have built a small cms which allows me to create simple html pages and then upload them Creation of Raw Exposure manually SAP Gurus
I am creating Raw Exposure ( Hedge management ) thru T Code TEM10 with followin
|