Jump to content

empty content?


taksi10

Recommended Posts

Hello Taksi10,

 

I think the problem comes from the form. Check your function renderForm() again, and also give the input fields different names.

 

I hope that will help!

Quyen,

 

 

thanks miss quyen :)

 

i changed already the name of the fields. but the output is just the same.

does my function renderForm() code correct?

Link to comment
Share on other sites

Hi again,

 

Could you please send me the php file, and I will try to edit it for you. Or you can try this:

 

$bno = mysql_real_escape_string(htmlspecialchars($_POST['branch_id']));

$street = mysql_real_escape_string($_POST['street']);

$area = mysql_real_escape_string(htmlspecialchars($_POST['area']));

$city = mysql_real_escape_string(htmlspecialchars($_POST['city']));

$postcode = mysql_real_escape_string(htmlspecialchars($_POST['postcode']));

$telno = mysql_real_escape_string(htmlspecialchars($_POST['tel']));

$faxno = mysql_real_escape_string(htmlspecialchars($_POST['fax']));

 

Note:

branch_id, street, area, city, postcode, tel, fax have to be exacly the same with form_component_name (I am not sure what do they look like now after you edit).

In the code above, for example your input text is :

....do the same to other components.

Or you can try to read this page, very basic and simple, also easy to understand : http://w3schools.com/php/php_post.asp

 

Goodluck!

 

Quyen,

Edited by quyen
Link to comment
Share on other sites

Hi again,

 

Could you please send me the php file, and I will try to edit it for you. Or you can try this:

 

$bno = mysql_real_escape_string(htmlspecialchars($_POST['branch_id']));

$street = mysql_real_escape_string($_POST['street']);

$area = mysql_real_escape_string(htmlspecialchars($_POST['area']));

$city = mysql_real_escape_string(htmlspecialchars($_POST['city']));

$postcode = mysql_real_escape_string(htmlspecialchars($_POST['postcode']));

$telno = mysql_real_escape_string(htmlspecialchars($_POST['tel']));

$faxno = mysql_real_escape_string(htmlspecialchars($_POST['fax']));

 

Note:

branch_id, street, area, city, postcode, tel, fax have to be exacly the same with form_component_name (I am not sure what do they look like now after you edit).

In the code above, for example your input text is :

....do the same to other components.

Or you can try to read this page, very basic and simple, also easy to understand : http://w3schools.com/php/php_post.asp

 

Goodluck!

 

Quyen,

 

hi again ms. quyen :)

thanks very much for making me realize that the names of the fields are all the same. i changed it, and tried to make a new page. and now its working already! thanks so much.

 

its really true that sometimes with your excitement to do the program you forgot the small important things :)

thanks for the help again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...