02 Feb, 2012, tphegley wrote in the 1st comment:
Votes: 0
I have a PHP question. I'm having trouble getting information from a query string in a URL. I'm using qsfportal and everything is modular from the mysql database in table REGISTER_MAIN.

I've tried both:
echo $_GET['cname'];

echo 'Hello ' . htmlspecialchars($_GET["cname"]) . '!';

And I keep getting the error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hermes/bosweb25b/b857/ipw.tphegley/public_html/qsf/func/register.php(100) : eval()'d code on line 17

I'm not exactly sure 'how' to properly insert php code to get what I want especially with having all the modular tables for the qsfp forum software.

Thanks for any help.
02 Feb, 2012, kiasyn wrote in the 2nd comment:
Votes: 0
Is this in your .php file or in your template?
02 Feb, 2012, tphegley wrote in the 3rd comment:
Votes: 0
I'm trying to put the php code into the register_main table in the mysql.

Here's the table:
<form action="{$this->self}?a=register" method="post">
<div class="title">{$this->lang->register_reging}</div>
///////////////////<————I want the php to go here so I can call the name and a few other queries into the register page.
<p class="line"></p>
<span class="field">{$this->lang->register_new_user}</span>
<span class="form"><input type="text" name="desuser" size="40" /></span>
<p class="line"></p>

<span class="field">{$this->lang->register_email}</span>
<span class="form"><input type="text" name="email" size="40" /></span>
<p class="line"></p>

<span class="field">{$this->lang->register_passwd}</span>
<span class="form"><input type="password" name="passA" size="40" /></span>
<p class="line"></p>

<span class="field">{$this->lang->register_confirm_passwd}</span>
<span class="form"><input type="password" name="passB" size="40" /></span>
<p class="line"></p>


<IF (!$tos_text)>
<input type="hidden" name="terms" value="1" />
<span class="field">{$this->lang->register_tos_read}</span>
<span class="form">{$tos_text}</span>

<p class="line"></p>

<span class="field">{$this->lang->register_tos_i_agree}</span>
<span class="form"><input type="checkbox" name="terms" /></span>

<p class="line"></p>
<input type="hidden" name="token" value="$token" />
<input type="submit" name="submit" value="{$this->lang->register_reg}" />

There isn't a 'static' php page as it all loads into the index.php from the main site.

So it'd be site.com/index.php?a=register&item=1...

I want to get cname and email from that and put it into the 'register' table.