This topic is locked
[SOLVED]

 Add UPLOAD PICTURE to the existing Form

8/16/2008 3:58:21 PM
PHPRunner General questions
C
caro author

Here is the Form in Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>artiste</TITLE>

<META http-equiv=Content-Type content="text/html; charset=windows-1250"><LINK

href="include/style.css" type=text/css rel=stylesheet>{$includes}

<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>

<BODY bgColor=white

{$bodyonload}>{if !$onthefly}{include_if_exists file="include/header.php"}&nbsp;{/if}&nbsp;
<FORM action=_artiste_add.php method=post encType=multipart/form-data

{$formname} {$onsubmit}>{if $onthefly}<input type=hidden name="editType" value="onthefly"><input type=hidden name="table" value="{$flytable}"><input type=hidden name="field" value="{$flyfield}"><input type=hidden name="category" value="{$flycategory}">{/if}{doevent name="AddOnLoad"}&nbsp;

<TABLE cellSpacing=0 cellPadding=0 border=0 {if !$onthefly} align=center {/if}>

<TBODY>

<TR>

<TD width=522><B class=xtop><B class=xb1b></B><B class=xb2b></B><B

class=xb3b></B><B class=xb4b></B></B>

<DIV class=xboxcontentb>

<TABLE class=main_table cellSpacing=0 cellPadding=0 border=0>

<TBODY>

<TR>

<TD width=522>

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

<TBODY>

<TR>

<TD class=upeditmenu vAlign=middle align=middle width=520 height=35>artiste, Aggiungi un nuovo record

</TD></TR></TBODY></TABLE></TD></TR>

<TR>

<TD width=521 bgColor=white height=1></TD></TR>{if $message!=""}

<TR>

<TD

style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"

align=middle width=522>

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

<TBODY>

<TR height=47>

<TD width=467><B class=xtop><B class=xb1u></B><B

class=xb2u></B><B class=xb3u></B><B class=xb4u></B></B>

<DIV class=xboxcontentb>

<TABLE cellSpacing=0 cellPadding=5 width="100%" align=center

border=0>

<TBODY>

<TR>

<TD class=downedit2 align=middle colSpan=2>{$message}</TD></TR></TBODY></TABLE></DIV><B

class=xbottom><B class=xb4u></B><B class=xb3u></B><B

class=xb2u></B><B

class=xb1u></B></B></TD></TR></TBODY></TABLE></TD></TR>{/if}

<TR>

<TD

style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"

width=521>

<DIV class=xboxcontent>

<TABLE cellSpacing=0 cellPadding=4 border=0>

<TBODY>

<TR>

<TD class=editshadeleft_b2 style="PADDING-LEFT: 15px"

width=169>nome</TD>

<TD class=editshaderight_lb2 style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="nome" mode="add" value=$value_nome}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>cognome</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="cognome" mode="add" value=$value_cognome}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>email</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="email" mode="add" value=$value_email}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>disponibilita</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="disponibilita" mode="add" value=$value_disponibilita}&nbsp;</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>nazionalita</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="nazionalita" mode="add" value=$value_nazionalita}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>anno nascita</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="anno nascita" mode="add" value=$value_anno_nascita}&nbsp;

&nbsp;<IMG src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>altezza</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="altezza" mode="add" value=$value_altezza}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>peso</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="peso" mode="add" value=$value_peso}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>seno</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="seno" mode="add" value=$value_seno}&nbsp;</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>vita</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="vita" mode="add" value=$value_vita}&nbsp;</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>fianchi</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="fianchi" mode="add" value=$value_fianchi}&nbsp;</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>mese foto</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="mese foto" mode="add" value=$value_mese_foto}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>anno foto</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="anno foto" mode="add" value=$value_anno_foto}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>figurante di sala</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="figurante di sala" mode="add" value=$value_figurante_di_sala}&nbsp;

</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>giorni settmanali di lavoro</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="giorni settmanali di lavoro" mode="add" value=$value_giorni_settmanali_di_lavoro}&nbsp;

</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>luogo</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="luogo" mode="add" value=$value_luogo}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>inizio lavoro</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="inizio lavoro" mode="add" value=$value_inizio_lavoro}&nbsp;

&nbsp;<IMG src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>preferenze luogo lavoro</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="preferenze luogo lavoro" mode="add" value=$value_preferenze_luogo_lavoro}&nbsp;

</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>preferenze regione di lavoro</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="preferenze regione di lavoro" mode="add" value=$value_preferenze_regione_di_lavoro}&nbsp;

</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>luogo,regione di lavoro tassativa</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="luogo,regione di lavoro tassativa" mode="add" value=$value_luogo_regione_di_lavoro_tassativa}&nbsp;

</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>vuole lavorare a firenze</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="vuole lavorare a firenze" mode="add" value=$value_vuole_lavorare_a_firenze}&nbsp;

&nbsp;<IMG src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>esperienze di lavoro</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="esperienze di lavoro" mode="add" value=$value_esperienze_di_lavoro}&nbsp;

&nbsp;<IMG src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>cellulare</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="cellulare" mode="add" value=$value_cellulare}&nbsp;&nbsp;<IMG

src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>telefono</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="telefono" mode="add" value=$value_telefono}&nbsp;</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>italiano</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="italiano" mode="add" value=$value_italiano}&nbsp;</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>periodo di lavoro</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="periodo di lavoro" mode="add" value=$value_periodo_di_lavoro}&nbsp;

&nbsp;<IMG src="images/icon_required.gif"> </TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>interessata a lavorare al mare</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="interessata a lavorare al mare" mode="add" value=$value_interessata_a_lavorare_al_mare}&nbsp;

</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>interessata a lavorare in entroterra</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="interessata a lavorare in entroterra" mode="add" value=$value_interessata_a_lavorare_in_entroterra}&nbsp;

</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px" width=169>se

non eu ha il permesso di lavoro</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="se non eu ha il permesso di lavoro" mode="add" value=$value_se_non_eu_ha_il_permesso_di_lavoro}&nbsp;

</TD></TR>

<TR>

<TD class=editshade_b style="PADDING-LEFT: 15px"

width=169>comento</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px"

width=296>{build_edit_control field="comento" mode="add" value=$value_comento}&nbsp;</TD></TR>

<TR>

<TD class=downedit align=left width=465 colSpan=2><IMG

src="images/icon_required.gif"> - Campo richiesto </TD></TR>

<TR>

<TD class=downedit align=middle width=465 colSpan=2><SPAN

class=buttonborder><INPUT class=button type=submit value=&nbsp;&nbsp;Salva&nbsp;&nbsp; name=submit1></SPAN>

<SPAN class=buttonborder><INPUT class=button type=reset value=&nbsp;&nbsp;Annulla&nbsp;&nbsp;></SPAN>&nbsp;

{if $onthefly}<SPAN class=buttonborder><INPUT class=button type=button value=&nbsp;&nbsp;Cancella&nbsp;&nbsp; {$cancelonclick}></SPAN>&nbsp;{else}<SPAN

class=buttonborder></SPAN>&nbsp;{/if}<input type=hidden name="a" value="added"></TD></TR></FORM></TBODY></TABLE></DIV><B

class=xbottom><B class=xb4a></B><B class=xb3a></B><B

class=xb2a></B><B class=xb1a></B></B></TD></TR></TBODY></TABLE></DIV><B

class=xbottom><B class=xb4b3></B><B class=xb3b3></B><B class=xb2b3></B><B

class=xb1b3></B></B></TD></TR></TBODY></TABLE><BR>{if !$onthefly}{include_if_exists file="include/footer.php"}&nbsp;{/if}{$linkdata}<script>SetToFirstControl();</script> </BODY></HTML>

-----------
and desplayed in Brauser:
Visit My Website
I would like to add UPLOAD PICTURE(more Pictures) to this Form

Is there anybody to help to add the relative Code to the Form for UPLODING PICTURE and tell me than to if needed to edit the respective other Pages too, in Connection with this Page generated with PHPR 4.2.379
Thanks in Advance,

Danielecar

S
swanside 8/17/2008

You dont need to worry about the code.
In your database, create a new field called picture and set it to LONGBLOB.
Open your project and on the Edit SQL Querypage make sure there is a tick in the picture box.
Go to the visual editor and the required table which has the picture box in it and double click on it in the list page, it should be set as image.
Go to the add page and again double click on it and it again should be set as image.
If you want to add a thumbnail, just create another field in your database and call it thumbnail and when you get to the visual editor tick that box.

C
caro author 8/17/2008

You dont need to worry about the code.

In your database, create a new field called picture and set it to LONGBLOB.
Open your project and on the Edit SQL Querypage make sure there is a tick in the picture box.
Go to the visual editor and the required table which has the picture box in it and double click on it in the list page, it should be set as image.
Go to the add page and again double click on it and it again should be set as image.
If you want to add a thumbnail, just create another field in your database and call it thumbnail and when you get to the visual editor tick that box.


Thanks, Swanside, I will try it and tell You than if succesfull or not.

C
caro author 8/17/2008

You dont need to worry about the code.

In your database, create a new field called picture and set it to LONGBLOB.
Open your project and on the Edit SQL Querypage make sure there is a tick in the picture box.
Go to the visual editor and the required table which has the picture box in it and double click on it in the list page, it should be set as image.
Go to the add page and again double click on it and it again should be set as image.
If you want to add a thumbnail, just create another field in your database and call it thumbnail and when you get to the visual editor tick that box.


Hallo

Here again
I followed Your Instructions and encountered this Problem:
PHPRunner 4.2.379 dos not generates Modifications to the Add Page.This one dos not show at all the added Pictur nor Thumbnail.

I want to notice too could not set the Picture Field to LONGBLOB, because there is only MIDLBLOB in the menu of this Field and I set it to it.The same with the Thumbnail Field.
Where can be the Problem???

Thanks.

Danielecar

S
swanside 8/17/2008



Hallo

Here again
I followed Your Instructions and encountered this Problem:
PHPRunner 4.2.379 dos not generates Modifications to the Add Page.This one dos not show at all the added Pictur nor Thumbnail.

I want to notice too could not set the Picture Field to LONGBLOB, because there is only MIDLBLOB in the menu of this Field and I set it to it.The same with the Thumbnail Field.
Where can be the Problem???

Thanks.

Danielecar


What do you use to edit your MySQL tables? Also, on the add page, you might have to press the reset this page option on the visual editor.

J
Jane 8/18/2008

Danielecar,
send link to your pages on the Demo Acount server and detailed description of what you're doing to support@xlinesoft.com.