[Coco] OT -- PHP code help needed.
David Roper
dave at ebonhost.com
Sun Sep 17 20:33:26 EDT 2006
Hi Dave,
PHP is case-sensitive, so you'll need to replace all instances of $_get
with $_GET
Hope this helps!
- David
Dave Kelly wrote:
> I need to pass a variable to a php include statememt.
>
>
> <a
> href="signup.php?var1=list-PINSS.php&var2=blurb-PINSS.php"><h3>Padre
> Island National Sea Shore</h3></a><br>
>
> to be used in the include statememsts;
>
>> <html>
>> <body>
>> <?php include ($_get["var2"]); ?>
>> <br clear="all">
>> <?php include ($_get["var1"]); ?>
>> <br clear="all">
>> <form action="form.php?var3=$_GET["var1"]" method="GET">
>> <input type="hidden" name="op" value="ds">
>> <table width="468" border="0" cellspacing="0" cellpadding="0">
>> <tr>
>> <input type="hidden" name="id[1]" value="<br />"
>> <td>Name<input name="name[1]" type="text" size="30"></td>
>> <td>Email<input name="email[1]" type="text" size="60"></td>
>
> I am getting these errors when I run it.
>
>>
>> Notice: Undefined variable: _get in
>> /var/www/vhosts/texasflyfishers.org/httpdocs/signup.php on line 3
>>
>> Warning: main(): Failed opening '' for inclusion
>> (include_path='.:/usr/share/pear') in
>> /var/www/vhosts/texasflyfishers.org/httpdocs/signup.php on line 3
>>
>>
>> Notice: Undefined variable: _get in
>> /var/www/vhosts/texasflyfishers.org/httpdocs/signup.php on line 5
>>
>> Warning: main(): Failed opening '' for inclusion
>> (include_path='.:/usr/share/pear') in
>> /var/www/vhosts/texasflyfishers.org/httpdocs/signup.php on line 5
>>
>> Name Email Phone
>
> Any idea what I am doing wrong.
> Dave
>
>
More information about the Coco
mailing list