I have added your code in to the page and the results are as follows.
Array
(
[id] => 1
[name] =>
[Submit] => Submit
)
This has now confused me even more!!
The page loads fine when its requested, no errors at all, i have also now added an echo to show the id that it is getting and it is the same as the one that is passed in the url.
Its only when I submit the form on that page that I get the error. I think that the problem lies in the hidden input...
Ok,
This is where I am at the moment.
I have changed some of the variables in order to try and find out what is going wrong.
The code currently looks like this:
<?
if(isset($_POST['submit'])) {
$name = $_POST['name'];
$id = $_POST['id'];
$SQL = " INSERT INTO request ";
$SQL...
Hi Vragabond,
Sorry I should of explained that the original "id" is passed to the script via the request for the page i.e: "example.php?id=1"
I then belive that the follwoing line should take that number and set it as the "id".
if(isset($_POST['post'])) {$id = $_POST['id'];} else {$id =...
Hello,
Can anyone see why this piece of code is not working. Sometimes the page looks as if it is posting the data but nothing appears in the table "request" and then there are other times when i get "Notice: Undefined index: id"
Any suggestions??
<?
if(isset($_POST['post'])) {
$name =...
Hello all,
I am having a problem with the below script and im not sure why.
The error message that I am getting is:
Notice: Undefined variable: request_method in C:\Program Files\Apache Group\Apache2\htdocs\fns\login.php on line 49
However this code is working fine on a hosted site and not...
Thanks Ivanv.
This works a treat on my standalone machine. Will have to wait to Monday to see if I can get it working on an NT network.
Thanks again.
Martin
Hi folks,
Hope you can help me on this.
What I am trying to find out is if it is possible to get an NT username through javascript.
The codeing that I have found so far does not seem to work.
The code that i have is:
<script language="javascript">
function getdata()
{
var username =...
Hi Folks,
I need some help with some thing that is probably quite basic!
I have a page that contains images. On another page I have details that relate to each of those images. What I want to do is when I click on an image I want to open the details page and get it to go to a particular point...
Hi Guys,
Can some one tell me how to convert an Integer to a String.
Basically i used the parseInt() command to convert a string to an integer so that I could add a value to it and I now need to change it back to a string so that I can use it as a 'select' option value.
Thanks
Martin
Thanks to everyone for their help on this.
I ended up doing basically what Bastien said. I created a txt file with the information in and then changed the index file to PHP so that I could read the data out of the file and place it where I needed on the page.
One thing I was curious about was...
Ok i am begining to userstand this a lttle bit.
I would use the fopen() command to open the file.
$myfile = fopen("index.html", "r+")
Then I would need to reset the file pointer to the line of code that I want, say line 83
fseek($myfile,82)
Then write the data that I want to change...
I would be looking to permenantly change the actual page source.
The admin page would be the only page that would be open at the time of the change.
I looked at your posibility of using the innerhtml option whilst having the page open but when I closed the page and reopened it, it cleared the...
You may want to start by looking at your query. It looks like your query is only taking the job name.
Your code...
// column 1 JOB TITLE
echo '<td height="31" colspan="2" align="center" class="style60">'.$table[0].'</td>';
// column 2 WITH TEL
echo '<td height="31" align="center"...
Try this one. It works on my local intranet site.
<script language="JavaScript">
<!--
//Disable right mouse click Script
function clickIE() {
if (document.all) return false;
}
function clickNS(e) {
if (document.layers||(document.getElementById&&!document.all)) {
if...
Hi Guys,
I have asked this question in the PHP forum and been directed here.
I am trying to find out if it is possible to change a line of html code in another webpage by clicking a button.
Basically I want to change a value on index.htm when i cilck a button on admin.htm
The value that I...
Hi Guys,
I am trying to find out if it is possible to change a line of html code in another webpage by clicking a button.
Basically I want to change a value on index.htm when i cilck a button on admin.htm
Is this possible? If so can someone please point me in the right direction.
Thanks
Martin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.