Hello,
I want to use this snippet to make sure the fields in a form are ok before processing it.
Code: <FORM method="post">
To:
<input type="text" name="name" size="40" value="<?php if($name) { print $name; } else { print "Insert Name"; } ?>">
<input name="action" type="submit" value="Update Form">
</FORM>
It works, but I don't understand why.
The if statement is checking for the variable $name, but I haven't used the code that I would normally use.
What I see in all my tutorials would lead me to use...
$name= $_POST['name];
So, I'm confused as to where the $name variable is being found.
Thanks for your patience
Run function every 5 mins ??
I have a function PostMessage()How can I run it every 5 mins ??
need help in mysql_num_rows()
please tell me what i am doing wrong in this query. it displays this errorCode: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\wamp\www\dynamic\quiz2.php on
downloading a file as HTML
Hi.I'm rather confused with forcing a download. I just want to save dynamic content (from $_SESSION[''] data) as a .html file.The script to do this is a PHP page, but when I click on
help with email script...
hey I need help with my mail scriptwhen the form on http://www.mcgdesignstudio.com/contact.html is filled out, it send the from with no errors.. however i never receive it.. my hosting company have
Turning Data into URLs?
This may seem very basic to you, but I'm having a hard time figuring out how to do this since I don't even know what the proper term for it is:Background info:Animals Table - animalid, name, photo,
Weird problem with SELECT command..Help!
Hi!It seems I'm having a really weird problem with SQL SELECT command....I have table into a mySQL DB wich as 4 entry in it. I created the select command to retrieve the data and only 3 of the 4 entry
Javascript using window.location seems to lose state
Not sure what forum so let me know if I'm in the wrong place.
PHP Upload issue
Hi guys,I have stumble across an interesting issue with my script and is doing my head in.A little background on the application.I've got a document repository site which uses Jupload to upload
Detail Expenses Report by Cost Center
I would like to obtain a report out of SAP that shows a list of expenses by cost center that shows the vendor that the expense related to.
Help me with some material on Open Text Overview.
Hi Experts,