First off, I'm working in Gnome, with netBeans and the Symfony framework (v 1.2.4)
I guess what i'm trying to do is quite simple, but as for I am quite new to php, and also to symfony, I'm having a hard time to do it.
Basically, what I want to do is to show some options (just plain html text), but have a form for each option. The first option is to input a date to make a SQL query in a DB, and the second option is to upload a file. I have both of 'em working, but not in the same template. The following code should be enough, for it is quite simple code:
indexSuccess.php
<div>
<h1>Administratork</h1>
<h3>Option 1</h3>
<?php include_partial('formGenerate', array('formGenerate' => $formGenerate)) ?>
<h3><a href="<?php echo url_for('home/upload') ?> ">upload file</a></h3>
</div>uploadSuccess.php
<form action="<?php echo url_for('home/previewUpload') ?>" method="POST" enctype ="multipart/form-data" >
<table>
<?php echo $fileUpload ?>
<tr>
<td colspan="2">
<input type="submit" />
</td>
</tr>
</table>
</form>So, the indexSuccess gives the 2 options, but I haven't found a way to show both forms in the same page, so I can get rid of the link to the second page, thus eliminating an unnecesary step for the user. I tried using another include_partial, but it didn't let me (couldn't find the reason behind this). Any/All help is deeply appreciated guys, all coments regarding how to improve my crappy php skills ;)
PD: If more info is needed, please say so.

Help



Back to top









