Welcome! Log In Create A New Profile

Advanced

GET and POST

Posted by Mac 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Re: DELETE
October 03, 2011 02:59PM
Hi Mac,i have sorted that mistake with this code
Language: PHP
if (isset($_REQUEST[';delete';])==';yes';) {

even now the page does not delete,it can take the user back to the lisp page but does not delete when iclick yes where did i go wrong.here is the code:
Language: PHP
}elseif (delete==';absolutely';) {   $sql= "SELECT * FROM my_discs WHERE disc_id=';$disc_id';"; $sql="DELETE FROM my_discs WHERE disc_id=';$disc_id';";//delete all from the table named my_discs $result = mysql_query($sql)or die("query failed:" .mysql_error());   echo"The record has been deleted";
avatar
Mac
Re: GET and POST
October 04, 2011 07:52AM
MOKIRI Wrote:
-------------------------------------------------------
> I know these is not the correct thread to post my
> comment but i did try to start a new one there
> seem to be a problem but here is my comment, I
> have send my assignment 2 but it bounced back and
> i got the undelivered message alert, have you
> changed the delivery address Dr Mac?


Nope.
avatar
Mac
Re: DELETE
October 04, 2011 07:53AM
43895107 Wrote:
-------------------------------------------------------
> even now the page does not delete,it can take the
> user back to the lisp page but does not delete
> when iclick yes where did i go wrong.here is the
> code:
Language: PHP
> }elseif (delete==';absolutely';) { >   [code="php"] Language: PHP}elseif (delete==';absolutely';) {

This code is not correct.
Re: DELETE
October 04, 2011 10:40AM
How can i correct this code:
Language: PHP
}elseif (delete==';absolutely';) {
avatar
Mac
Re: GET and POST
October 04, 2011 12:32PM
Go through your tutorial matter, the handbook and so forth. This is discussed everywhere!
Re: EDITING
October 05, 2011 01:42PM
Hey Mac,my update page works if i get the id with other fields in the form
Language: PHP
$disc_id =$_GET[';disc_id';];   $category = $_GET[';category';]; $artist_name = $_GET[';artist_name';]; //.................................................

but deos not work if i take them out
Language: PHP
$disc_id =$_GET[';disc_id';];   //$category = $_GET[';category';]; //$artist_name = $_GET[';artist_name';];
Is there a solution for this error,all cms to be fine when i get all the fields from the form,but i saw that u said
Language: PHP
$make = $_GET[';make';]; //you did not pass this so why put it here? $year = $_GET[';year';]; //you did not pass this so why put it here? $price = $_GET[';price';]; //you did not pass this so why put it here?
help ASAP.
avatar
Mac
Re: GET and POST
October 05, 2011 02:31PM
Because that student did not use it, so it is not relevant to your application.
Sorry, only registered users may post in this forum.

Click here to login