Ask a Question related to Dreamweaver AppDev, Design and Development.
-
jip #1
Simple PHP Headers Syntax Question
What is the correct syntax to add a variable to a query string using the GET
method of a form? I am trying to pass a dynamic variable ('$username'). Here is
my code: header('Location: menu_short.php?name=$username'); I think I have to
add an ECHO but I don't know the correct syntax. Any help is appreciated.
jip Guest
-
Simple syntax question
Hi I don't remember how to get the diplayed result broken in multiple lines. The command: mysql> SHOW INDEX FROM recentchanges; gives one... -
dummy here needs simple MySQL syntax help
Need to retrieve a specific row from table but only have the record number ( from a previous queryname.currentrow) passed as a form var to reference... -
simple syntax issue?
Hi, I just want a function to return true, but after a LoadVars.onLoad event. Am I right in assuuming that the return in the onLoad = function... -
Simple ANSI syntax Outer Join question
Hello. I have an application that uses many *= and =* outer joins in its queries. In order to convert an older query into the proper syntax, I am... -
Simple Perl code/syntax question
> Hallo everyone and thank you for your previous help Well there is the FAQ about case statements: perldoc -q 'switch or case' In your case... -
Michael Fesser #2
Re: Simple PHP Headers Syntax Question
.oO(jip)
1) The Location header requires an absolute address. See the header()>What is the correct syntax to add a variable to a query string using the GET
>method of a form? I am trying to pass a dynamic variable ('$username'). Here is
>my code: header('Location: menu_short.php?name=$username'); I think I have to
>add an ECHO but I don't know the correct syntax. Any help is appreciated.
manual for an example.
[url]http://www.php.net/manual/en/function.header.php[/url]
2) If you want PHP to replace the variable $username with its value you
have to put the entire string into double quotes.
[url]http://www.php.net/manual/en/language.types.string.php[/url]
Micha
Michael Fesser Guest



Reply With Quote

